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)

* [Segment Replication] Log diff.different files

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Remove unnecessary conversion

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Spotless fix

Signed-off-by: Suraj Singh <surajrider@gmail.com>

---------

Signed-off-by: Suraj Singh <surajrider@gmail.com>
  • Loading branch information
dreamer-89 authored and mch2 committed Mar 4, 2023
1 parent d3f8fb2 commit d81e876
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,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 d81e876

Please sign in to comment.