Skip to content

Commit

Permalink
fixing segment name during refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
RS146BIJAY committed Oct 25, 2024
1 parent 0d2dde5 commit 7ee03dc
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2044,7 +2044,11 @@ public void flush(boolean force, boolean waitIfOngoing) throws EngineException {

try (StandardDirectoryReader r1 = (StandardDirectoryReader) StandardDirectoryReader.open(criteriaBasedIndexWriters.get("400"));
StandardDirectoryReader r2 = (StandardDirectoryReader) StandardDirectoryReader.open(criteriaBasedIndexWriters.get("200"))) {
parentIndexWriter.addIndexes(r1.getSegmentInfos(), r2.getSegmentInfos());
SegmentInfos clientErrorLogSegmentInfos = r1.getSegmentInfos();
SegmentInfos successLogSegmentInfos = r2.getSegmentInfos();
addPrefixToSegmentInfoAttribute(clientErrorLogSegmentInfos, "400");
addPrefixToSegmentInfoAttribute(successLogSegmentInfos, "200");
parentIndexWriter.addIndexes(clientErrorLogSegmentInfos, successLogSegmentInfos);
}
final Map<String, String> userData = getParentCommitData(translogManager.getTranslogUUID());
SegmentInfos latestSegmentInfos = parentIndexWriter.getSegmentInfos();
Expand Down

0 comments on commit 7ee03dc

Please sign in to comment.