Skip to content

Commit 234b0c9

Browse files
committed
update
Signed-off-by: xuxiong1 <[email protected]>
1 parent d14da01 commit 234b0c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/main/java/org/opensearch/index/IndexSettings.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ public static IndexMergePolicy fromString(String text) {
206206
* {@link org.opensearch.index.shard.IndexShard#trimOperationOfPreviousPrimaryTerms(long)}) occurs during the recovery
207207
* finalization phase. If a replica fails before completing
208208
* {@link org.opensearch.indices.recovery.RecoveryTarget#finalizeRecovery(long, long, org.opensearch.core.action.ActionListener)}
209-
* (leaving untrimmed stale operations) and no in-sync copies are available, we force-allocate this recovering replica as primary.
209+
* and there are duplicates of the same translog operations with different primary terms in the translog (could happen during primary failover with newwork isolation, leaving untrimmed stale operations)
210+
* and no in-sync copies are available, we force-allocate this recovering replica as primary.
210211
* In this scenario, forward reading could return outdated operations from previous primary terms.
211212
*/
212213
public static final Setting<Boolean> INDEX_TRANSLOG_READ_FORWARD_SETTING = Setting.boolSetting(

0 commit comments

Comments
 (0)