Skip to content

Commit 0fd4c9d

Browse files
committed
Add version check again for full cluster state upload
Signed-off-by: Sooraj Sinha <soosinha@amazon.com>
1 parent 98c9034 commit 0fd4c9d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6363
- Add lower limit for primary and replica batch allocators timeout ([#14979](https://github.com/opensearch-project/OpenSearch/pull/14979))
6464
- Optimize regexp-based include/exclude on aggregations when pattern matches prefixes ([#14371](https://github.com/opensearch-project/OpenSearch/pull/14371))
6565
- Replace and block usages of org.apache.logging.log4j.util.Strings ([#15238](https://github.com/opensearch-project/OpenSearch/pull/15238))
66+
- Remote publication using minimum node version for backward compatibility ([#15216](https://github.com/opensearch-project/OpenSearch/pull/15216))
67+
6668

6769
### Deprecated
6870

server/src/main/java/org/opensearch/gateway/GatewayMetaState.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ private boolean shouldWriteFullClusterState(ClusterState clusterState, int codec
768768
if (lastAcceptedState == null
769769
|| lastAcceptedManifest == null
770770
|| lastAcceptedState.term() != clusterState.term()
771+
|| lastAcceptedManifest.getOpensearchVersion() != Version.CURRENT
771772
|| lastAcceptedManifest.getCodecVersion() != codecVersion) {
772773
return true;
773774
}

0 commit comments

Comments
 (0)