Skip to content

Commit

Permalink
[Segment Replication] Log diff.different files for debuggability (#6049)
Browse files Browse the repository at this point in the history
* [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 Jan 27, 2023
1 parent 4890b77 commit 8d4bbef
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,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 8d4bbef

Please sign in to comment.