Skip to content

Commit ca5bbd4

Browse files
Disabling knn validation checks (#1515)
* Disabling knn checks Signed-off-by: RS146BIJAY <[email protected]> * Update release-notes/opensearch-cross-cluster-replication.release-notes-3.0.0.0-alpha1.md Signed-off-by: Peter Zhu <[email protected]> * Resolve artifacts uploads Signed-off-by: Peter Zhu <[email protected]> --------- Signed-off-by: RS146BIJAY <[email protected]> Signed-off-by: Peter Zhu <[email protected]> Co-authored-by: Peter Zhu <[email protected]>
1 parent 50f71d3 commit ca5bbd4

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

.github/workflows/security-knn-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
uses: actions/upload-artifact@v4
8888
if: failure()
8989
with:
90-
name: logs
90+
name: logs-build-${{ matrix.java }}
9191
path: |
9292
build/testclusters/integTest-*/logs/*
9393
build/testclusters/leaderCluster-*/logs/*
@@ -137,7 +137,7 @@ jobs:
137137
uses: actions/upload-artifact@v4
138138
if: failure()
139139
with:
140-
name: logs
140+
name: logs-knnbuild-${{ matrix.java }}
141141
path: |
142142
build/testclusters/integTest-*/logs/*
143143
build/testclusters/leaderCluster-*/logs/*
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
## Version 3.0.0.0-alpha1 Release Notes
22

33
Compatible with OpenSearch 3.0.0.0-alpha1
4+
5+
### Maintenance
6+
* Version bump to opensearch-3.0.0-alpha1 and replaced usage of deprecated classes
7+
* Update CCR with gradle 8.10.2 and support JDK23 ([#1496](https://github.com/opensearch-project/cross-cluster-replication/pull/1496))
8+
9+
### Bug Fixes
10+
* Disabling knn validation checks ([#1515](https://github.com/opensearch-project/cross-cluster-replication/pull/1515))
11+
12+

src/main/kotlin/org/opensearch/replication/action/index/TransportReplicateIndexAction.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ class TransportReplicateIndexAction @Inject constructor(transportService: Transp
103103
if (!leaderSettings.getAsBoolean(IndexSettings.INDEX_SOFT_DELETES_SETTING.key, false)) {
104104
throw IllegalArgumentException("Cannot Replicate an index where the setting ${IndexSettings.INDEX_SOFT_DELETES_SETTING.key} is disabled")
105105
}
106-
//Not starting replication if leader index is knn as knn plugin is not installed on follower.
107-
ValidationUtil.checkKNNEligibility(getNodesInfoForPlugin(request.leaderAlias), request.leaderIndex)
106+
107+
// Disabling knn checks as new api call will require us add roles in security index which will be a breaking call.
108+
// ValidationUtil.checkKNNEligibility(getNodesInfoForPlugin(request.leaderAlias), request.leaderIndex)
108109

109110
ValidationUtil.validateIndexSettings(
110111
environment,

src/main/kotlin/org/opensearch/replication/action/resume/TransportResumeIndexReplicationAction.kt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,10 @@ class TransportResumeIndexReplicationAction @Inject constructor(transportService
9898
injectSecurityContext = true
9999
)(getSettingsRequest)
100100

101-
var nodesInfoRequest = NodesInfoRequest().addMetric(NodesInfoRequest.Metric.PLUGINS.metricName())
102-
val nodesInfoResponse = remoteClient.suspending(
103-
remoteClient.admin().cluster()::nodesInfo
104-
)(nodesInfoRequest)
105-
106101
val leaderSettings = settingsResponse.indexToSettings.get(params.leaderIndex.name) ?: throw IndexNotFoundException(params.leaderIndex.name)
107102

108-
/// Not starting replication if leader index is knn as knn plugin is not installed on follower.
109-
ValidationUtil.checkKNNEligibility(nodesInfoResponse, params.leaderIndex.name)
103+
// Disabling knn checks as new api call will require us add roles in security index which will be a breaking call.
104+
// ValidationUtil.checkKNNEligibility(nodesInfoResponse, params.leaderIndex.name)
110105

111106
ValidationUtil.validateAnalyzerSettings(environment, leaderSettings, replMetdata.settings)
112107

0 commit comments

Comments
 (0)