Skip to content

Commit 2794828

Browse files
Merge remote-tracking branch 'origin/main' into pkar/search-project-routing
2 parents 69155f8 + 6ab424e commit 2794828

File tree

2 files changed

+93
-432
lines changed

2 files changed

+93
-432
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,9 @@ public boolean isRemoteClusterServerEnabled() {
102102
* the functionality to do it the right way is not yet ready -- replace this code when it's ready.
103103
*/
104104
this.crossProjectEnabled = settings.getAsBoolean("serverless.cross_project.enabled", false);
105-
if (transportService != null) {
106-
transportService.getTelemetryProvider()
107-
.getMeterRegistry()
108-
.registerLongCounter(CONNECTION_ATTEMPT_FAILURES_COUNTER_NAME, "linked project connection attempt failure count", "count");
109-
}
105+
transportService.getTelemetryProvider()
106+
.getMeterRegistry()
107+
.registerLongCounter(CONNECTION_ATTEMPT_FAILURES_COUNTER_NAME, "linked project connection attempt failure count", "count");
110108
}
111109

112110
public RemoteClusterCredentialsManager getRemoteClusterCredentialsManager() {

0 commit comments

Comments
 (0)