Skip to content

Conversation

@fressi-elastic
Copy link
Contributor

@fressi-elastic fressi-elastic commented Dec 16, 2025

In order to store connectivity statistics we would like to create a file to be consumed by filebeat with all the informations required for investigating corpora download issue and monitor its reliability and speed. With this purpose the esrally-storage ls sub-command now always shows mirror failures, without requiring --mirror-failures flag which is intended to ignore those transfers that have any mirror failure (for example in order to populate a mirror bucket using esrally-storage put sub-command).

@fressi-elastic fressi-elastic changed the title --mirror-failures flag don't hides transfers without mirror failures. It always show mirror failures when there is any. Dec 16, 2025
@fressi-elastic fressi-elastic changed the title It always show mirror failures when there is any. It always shows mirror failures when there is any. Dec 16, 2025
@fressi-elastic fressi-elastic requested review from a team, Copilot and gbanasiak December 16, 2025 11:21
@fressi-elastic fressi-elastic marked this pull request as ready for review December 16, 2025 11:22
@fressi-elastic fressi-elastic enabled auto-merge (squash) December 16, 2025 11:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modifies the esrally-storage ls command to always display mirror failures when they exist, eliminating the need for the --mirror-failures flag to control output visibility. The --mirror-failures flag is repurposed to filter which transfers are displayed (showing only those with mirror failures), enabling better monitoring and investigation of corpora download reliability for filebeat consumption.

Key changes:

  • Removed mirror_failures parameter from output formatting functions, making mirror failure information always visible when present
  • Repurposed --mirror-failures CLI flag from controlling output visibility to filtering transfers
  • Added defensive check for stats to prevent empty arrays in output

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
esrally/storage/_transfer.py Removed mirror_failures parameter from pretty() and info() methods; mirror failures now shown automatically when present
esrally/storage/_cli.py Removed mirror_failures parameter from ls(), transfer_to_dict(), and transfer_to_filebeat() functions; added defensive check for empty stats

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fressi-elastic fressi-elastic enabled auto-merge (squash) December 16, 2025 11:25
Copy link
Contributor

@gbanasiak gbanasiak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fressi-elastic fressi-elastic merged commit 3dfda14 into elastic:master Dec 16, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants