From 6d686af28241851fe692779a5d641c6ece25b944 Mon Sep 17 00:00:00 2001 From: Yingyi Zhang Date: Fri, 14 Feb 2020 11:37:12 -0800 Subject: [PATCH] Make registerClusterMapListener no-op in static cluster manager (#1385) Change exception to no-op behavior for static clustermap. The method is going to be invoked by ReplicationManager during startup if we use static clustermap. --- .../java/com.github.ambry.clustermap/StaticClusterManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ambry-clustermap/src/main/java/com.github.ambry.clustermap/StaticClusterManager.java b/ambry-clustermap/src/main/java/com.github.ambry.clustermap/StaticClusterManager.java index 77e5b5d629..f2eb523fe1 100644 --- a/ambry-clustermap/src/main/java/com.github.ambry.clustermap/StaticClusterManager.java +++ b/ambry-clustermap/src/main/java/com.github.ambry.clustermap/StaticClusterManager.java @@ -155,7 +155,7 @@ public MetricRegistry getMetricRegistry() { @Override public void registerClusterMapListener(ClusterMapChangeListener clusterMapChangeListener) { - throw new UnsupportedOperationException("Registering clustermap listener is not supported in static clustermap"); + // no op for static cluster manager } // Administrative API