-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Log when a shard is immovable for longer than a configured threshold #136997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
nicktindall
merged 51 commits into
elastic:main
from
nicktindall:log_on_no_balancing_progress
Nov 7, 2025
Merged
Changes from 8 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
affdae5
Log when no progress is made towards the desired balance for some time
nicktindall 5249be9
Track immovable shards individually
nicktindall 14772ab
Naming, initial delay
nicktindall d8186d9
Remove dead code
nicktindall ad5c028
Tidy
nicktindall 7a98137
Javadoc
nicktindall e84efa6
Clear immovable shard in moveShards
nicktindall c901665
Merge branch 'main' into log_on_no_balancing_progress
nicktindall 4194739
Try tracking undesired state in shard routing
nicktindall f050316
Fix setting names
nicktindall c7b14fa
Naming
nicktindall 5cf44fc
Naming
nicktindall 1472ec2
ShardRouting#equals/hashCode
nicktindall 7652369
Javadoc
nicktindall 7996801
Fix logic to handle Long.MAX_VALUE
nicktindall 2056c4e
javadoc
nicktindall 6e37d04
javadoc
nicktindall 9590ce3
Merge remote-tracking branch 'origin/main' into log_on_no_balancing_p…
nicktindall 904d597
Naming, RoutingNodes updates
nicktindall be13adb
Clear becameUndesiredTime when a shard goes unassigned
nicktindall 5013031
Naming
nicktindall f285936
Merge remote-tracking branch 'origin/main' into log_on_no_balancing_p…
nicktindall 047b411
Mock time provision correctly
nicktindall 9bd1e24
Serialise became_undesired_time
nicktindall a8fba52
Add unit test
nicktindall fc9c7d0
Track undesired allocations locally
nicktindall 713a0e1
Merge remote-tracking branch 'origin/main' into log_on_no_balancing_p…
nicktindall 5f57c0b
Minimise change
nicktindall 5d1d4c0
Minimise change
nicktindall 54533f7
Tidy
nicktindall 2d3f10f
Tidy
nicktindall ba678a9
Reduce default limit
nicktindall 6330ba9
clear -> removeTracking
nicktindall f797014
Merge branch 'main' into log_on_no_balancing_progress
nicktindall 207dd0d
Update server/src/main/java/org/elasticsearch/cluster/routing/allocat…
nicktindall 6d5d2fa
Add separate setting for logging interval, reduce default to 5 minutes.
nicktindall 0af8050
Check for capacity before we check for existing record
nicktindall 6db1bc3
Discard excess tracking if the limit is reduced
nicktindall 5fd0770
Fix test after log message changed
nicktindall 7dcb690
Default max to track to zero
nicktindall ef8f45b
Add more unit tests
nicktindall 19b7475
Make resilient to metadata changes
nicktindall ed7caa4
Explicitly configure max tracking in test
nicktindall 53f95c0
de-dupe default time value
nicktindall be8a38b
Remove conditional and leave assertion
nicktindall 061e2ad
Reduce maximum max-to-track
nicktindall 17fd729
Merge branch 'main' into log_on_no_balancing_progress
nicktindall 566f5d5
Give duration threshold minimum of one minute
nicktindall 655e352
Use ordered map to quickly determine earliest entry
nicktindall feaca10
Add test cases where there is no desired balance
nicktindall d532523
Merge branch 'main' into log_on_no_balancing_progress
nicktindall File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.