Skip to content

Commit 205a638

Browse files
Add a TODO comment to explain why serverless.cross_project.enabled setting is used
1 parent 8076ba8 commit 205a638

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/src/main/java/org/elasticsearch/transport/RemoteClusterService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ public boolean isRemoteClusterServerEnabled() {
178178
if (remoteClusterServerEnabled) {
179179
registerRemoteClusterHandshakeRequestHandler(transportService);
180180
}
181+
/*
182+
* TODO: This is not the right way to check if we're in CPS context and is more of a temporary measure since
183+
* the functionality to do it the right way is not yet ready -- replace this code when it's ready.
184+
*/
181185
this.inSkippableContext = settings.getAsBoolean("serverless.cross_project.enabled", false);
182186
}
183187

0 commit comments

Comments
 (0)