Skip to content

Commit 80faf64

Browse files
authored
Use logically more correct expression (#131869)
1 parent 80ae7ec commit 80faf64

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/session

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/session/EsqlCCSUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static Map<String, List<FieldCapabilitiesFailure>> groupFailuresPerCluster(List<
5858
static Map<String, FieldCapabilitiesFailure> determineUnavailableRemoteClusters(Map<String, List<FieldCapabilitiesFailure>> failures) {
5959
Map<String, FieldCapabilitiesFailure> unavailableRemotes = new HashMap<>(failures.size());
6060
for (var e : failures.entrySet()) {
61-
if (Strings.isEmpty(e.getKey())) {
61+
if (RemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY.equals(e.getKey())) {
6262
continue;
6363
}
6464
if (e.getValue().stream().allMatch(f -> ExceptionsHelper.isRemoteUnavailableException(f.getException()))) {

0 commit comments

Comments
 (0)