Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ void validate(RequestStatus status)

case Success:
Assertions.assertTrue(tracker.all(FastPathShardTracker::hasReachedQuorum));
Assertions.assertTrue(tracker.all(shard -> shard.fastPathIsRejected() || shard.hasMetFastPathCriteria() || shard.fastPathIsDelayed()));
// Covers the conditions which allow Success to be returned in FastPathTracker.java
Assertions.assertTrue(tracker.all(shard -> shard.fastPathIsRejected() || shard.hasMetFastPathCriteria() || shard.fastPathIsDelayed() || (shard.fastPathFailures + shard.fastPathDelayed > 0)));
Assertions.assertFalse(tracker.any(FastPathShardTracker::hasFailed));
break;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,11 @@ private boolean validToReassignRange(Topology current, Shard[] nextShards, Map<I

private boolean previousEpochForRegainedRangeRetired(Topology current, Ranges regainingRanges)
{
// When nodeLookup isn't defined we are unable to get node state, so
// assume that the calling test doesn't care about retired ranges
if (this.nodeLookup == null)
return true;

for (Id id : current.nodes())
{
Node node = this.nodeLookup.apply(id);
Expand Down