Skip to content

Commit

Permalink
Fix spotless errors
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Kale <[email protected]>
  • Loading branch information
Sachin Kale committed Dec 14, 2023
1 parent 833c1b6 commit dfd8f7a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions server/src/main/java/org/opensearch/index/shard/IndexShard.java
Original file line number Diff line number Diff line change
Expand Up @@ -3442,12 +3442,13 @@ assert getLocalCheckpoint() == primaryContext.getCheckpointStates()
+ primaryContext
+ "]";
} else {
assert getLocalCheckpoint() == primaryContext.getCheckpointStates().get(routingEntry().allocationId().getId()).getLocalCheckpoint()
|| indexSettings().getTranslogDurability() == Durability.ASYNC : "local checkpoint ["
+ getLocalCheckpoint()
+ "] does not match checkpoint from primary context ["
+ primaryContext
+ "]";
assert getLocalCheckpoint() == primaryContext.getCheckpointStates()
.get(routingEntry().allocationId().getId())
.getLocalCheckpoint() || indexSettings().getTranslogDurability() == Durability.ASYNC : "local checkpoint ["
+ getLocalCheckpoint()

Check warning on line 3448 in server/src/main/java/org/opensearch/index/shard/IndexShard.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/index/shard/IndexShard.java#L3448

Added line #L3448 was not covered by tests
+ "] does not match checkpoint from primary context ["
+ primaryContext
+ "]";
}
synchronized (mutex) {
replicationTracker.activateWithPrimaryContext(primaryContext); // make changes to primaryMode flag only under mutex
Expand Down

0 comments on commit dfd8f7a

Please sign in to comment.