menghaoranss commented on issue #11747:
URL: 
https://github.com/apache/shardingsphere/issues/11747#issuecomment-895977762


   > Another question is, how do you use 'xx/states/primarynodes' and 
'xx/states/datanodes' ? I want to use it when adding failover.
   > Because I only searched here in all the codes, and the settings are empty, 
https://github.com/apache/shardingsphere/blob/5.0.0-beta/shardingsphere-governance/shardingsphere-governance-core/src/main/java/org/apache/shardingsphere/governance/core/registry/RegistryCenter.java#L111
   
   If data nodes changed, `db_discovery` will post event to `governance`, you 
can search the following code in `MGRDatabaseDiscoveryType.java`
   ```
   ShardingSphereEventBus.getInstance().post(new 
DataSourceDisabledEvent(schemaName, entry.getKey(), true));
   ```


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to