zhangmeng916 commented on a change in pull request #1033:
URL: https://github.com/apache/helix/pull/1033#discussion_r431978817
##########
File path:
helix-core/src/main/java/org/apache/helix/manager/zk/ZKHelixManager.java
##########
@@ -591,8 +591,11 @@ public void
addCurrentStateChangeListener(org.apache.helix.CurrentStateChangeLis
@Override
public void
addCustomizedStateRootChangeListener(CustomizedStateRootChangeListener listener,
String instanceName) throws Exception {
- addListener(listener, new
Builder(_clusterName).customizedStatesRoot(instanceName),
- ChangeType.CUSTOMIZED_STATE_ROOT, new
EventType[]{EventType.NodeChildrenChanged});
+ PropertyKey propertyKey =
_dataAccessor.keyBuilder().customizedStatesRoot(instanceName);
+ if (_zkclient.exists(propertyKey.getPath())) {
Review comment:
Participant does not need to listen on customized view change. The
backward compatibility issue happens when we have a new version controller,
while the client is on an old version participant. The new path
INSTANCES/CUSTOMIZED_STATES does not exist, but controller will try to add
listener to that path during live instance change. Then zkclient will have a no
node exception. It's fine, just a warn, but kind of pollute client's log and
make them confused.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]