-
Notifications
You must be signed in to change notification settings - Fork 27
CASSANDRA-21574 Fix failing tests for TrackerReconcilerTest #288
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -430,6 +430,11 @@ private boolean validToReassignRange(Topology current, Shard[] nextShards, Map<I | |
|
|
||
| private boolean previousEpochForRegainedRangeRetired(Topology current, Ranges regainingRanges) | ||
| { | ||
| // In cases where nodeLookup is null, we are not testing invariants that are | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. don't feel this comment helps. It didn't really tell me anything so I had to walk the code to understand why its there. What i see is that 2 code paths set We could have a comment like this?
|
||
| // related to this logic | ||
| if (this.nodeLookup == null) | ||
| return true; | ||
|
|
||
| for (Id id : current.nodes()) | ||
| { | ||
| Node node = this.nodeLookup.apply(id); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reordering the assert order made it harder to validate what changed in the diff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also explain why
(shard.fastPathFailures + shard.fastPathDelayed > 0)?so we check: met fast path, fast path is rejected, fast path is delayed... so your check just says "at least 1 failure or delay exists"? can you explain the situation you found and why this is the right fix?