Skip to content

Commit

Permalink
[Segment Replication] Log diff.different files for debuggability (ope…
Browse files Browse the repository at this point in the history
…nsearch-project#6049) (opensearch-project#6051)

* [Segment Replication] Log diff.different files



* Remove unnecessary conversion



* Spotless fix



---------


(cherry picked from commit 8d4bbef)

Signed-off-by: Suraj Singh <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent d343657 commit 125aaf4
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,11 @@ private void getFiles(CheckpointInfoResponse checkpointInfo, StepListener<GetSeg
if (diff.different.isEmpty() == false) {
getFilesListener.onFailure(
new IllegalStateException(
new ParameterizedMessage("Shard {} has local copies of segments that differ from the primary", indexShard.shardId())
.getFormattedMessage()
new ParameterizedMessage(
"Shard {} has local copies of segments that differ from the primary {}",
indexShard.shardId(),
diff.different
).getFormattedMessage()
)
);
}
Expand Down

0 comments on commit 125aaf4

Please sign in to comment.