zhangmeng916 opened a new issue #1025:
URL: https://github.com/apache/helix/issues/1025


   We removed the originally designed validation logic in participant auto 
registration as a result of some client request, i.e., the verification is not 
done in client side. We may want to add it back later depending on the usage.
   
   In ParticipantManager, joinCluster() function, if auto registration is on, 
we do the following check.
             // Disable the verification for now
             /*String cloudIdInRemote = cloudInstanceInformation
                 
.get(CloudInstanceInformation.CloudInstanceField.INSTANCE_SET_NAME.name());
             String cloudIdInConfig = 
_configAccessor.getCloudConfig(_clusterName).getCloudID();
   
             // validate that the instance is auto registering to the correct 
cluster
             if (!cloudIdInRemote.equals(cloudIdInConfig)) {
               throw new IllegalArgumentException(String.format(
                   "cloudId in config: %s is not consistent with cloudId from 
remote: %s. The instance is auto registering to a wrong cluster.",
                   cloudIdInConfig, cloudIdInRemote));
             }*/
   


----------------------------------------------------------------
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]

Reply via email to