We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
assertGenerationConsistency
1 parent 26b1ea8 commit 4de42a6Copy full SHA for 4de42a6
server/src/main/java/org/elasticsearch/snapshots/InFlightShardSnapshotStates.java
@@ -97,7 +97,8 @@ private static boolean assertGenerationConsistency(
97
@Nullable ShardGeneration activeGeneration
98
) {
99
final ShardGeneration bestGeneration = generations.getOrDefault(indexName, Collections.emptyMap()).get(shardId);
100
- assert bestGeneration == null || activeGeneration == null || activeGeneration.equals(bestGeneration);
+ assert bestGeneration == null || activeGeneration == null || activeGeneration.equals(bestGeneration)
101
+ : "[" + indexName + "][" + shardId + "]: " + bestGeneration + " vs " + activeGeneration;
102
return true;
103
}
104
0 commit comments