Skip to content

Commit 15fc712

Browse files
committed
Fix typo in comment in ReplicationOperation.java
Within two lines of each other appears "fallthrough" and "fall through", both typed by the same person who should have been paying better attention and only one of these is correct and the inconsistency is bothersome. This commit fixes the errant one.
1 parent 0b3be42 commit 15fc712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/elasticsearch/action/support/replication/ReplicationOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public void onResponse(ReplicaResponse response) {
189189
try {
190190
primary.updateLocalCheckpointForShard(response.allocationId(), response.localCheckpoint());
191191
} catch (final AlreadyClosedException e) {
192-
// okay, the index was deleted or this shard was never activated after a relocation; fallthrough and finish normally
192+
// okay, the index was deleted or this shard was never activated after a relocation; fall through and finish normally
193193
} catch (final Exception e) {
194194
// fail the primary but fall through and let the rest of operation processing complete
195195
final String message = String.format(Locale.ROOT, "primary failed updating local checkpoint for replica %s", shard);

0 commit comments

Comments
 (0)