Skip to content

Commit 20861a3

Browse files
Remove redundant legacy alias check
1 parent 0450941 commit 20861a3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,6 @@ public void onFailure(Exception e) {
374374

375375
@Override
376376
public void updateLinkedProject(LinkedProjectConfig config) {
377-
if (LOCAL_CLUSTER_GROUP_KEY.equals(config.linkedProjectAlias())) {
378-
throw new IllegalArgumentException("remote clusters must not have the empty string as its key");
379-
}
380377
final var projectId = config.originProjectId();
381378
final var clusterAlias = config.linkedProjectAlias();
382379
CountDownLatch latch = new CountDownLatch(1);

0 commit comments

Comments
 (0)