Skip to content

Commit

Permalink
Make registerClusterMapListener no-op in static cluster manager (#1385)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jsjtzyy authored Feb 14, 2020
1 parent cf90542 commit 6d686af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d686af

Please sign in to comment.