Skip to content

Commit

Permalink
fix - replica shards trying to send replica checkpoints (#2889)
Browse files Browse the repository at this point in the history
Signed-off-by: Poojita Raj <[email protected]>
  • Loading branch information
Poojita-Raj authored Apr 13, 2022
1 parent 61ecbc8 commit af3b9ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3234,7 +3234,7 @@ private EngineConfig newEngineConfig(LongSupplier globalCheckpointSupplier) {
}
};
final List<ReferenceManager.RefreshListener> internalRefreshListener;
if (indexSettings.isSegrepEnabled()) {
if (indexSettings.isSegrepEnabled() && shardRouting.primary()) {
internalRefreshListener = Arrays.asList(new RefreshMetricUpdater(refreshMetric), checkpointRefreshListener);
} else {
internalRefreshListener = Collections.singletonList(new RefreshMetricUpdater(refreshMetric));
Expand Down

0 comments on commit af3b9ec

Please sign in to comment.