zjcnb opened a new issue #13641:
URL: https://github.com/apache/shardingsphere/issues/13641
Hi community,
We think the existing code structure is not clear, and some code are
redundancy. For example, `MGRHeartbeatJob.class`, it has some variable need to
dynamic change, such as : `primaryDataSourceName` or
`disabledDataSourceNames`. But, it's not change. So we are plan to adjust
`shardingsphere-db-discovery-mgr` and `shardingsphere-db-discovery-core`.

task list:
- [ ] Init HeartbeatJob move to `shardingsphere-db-discovery-core`.
- [ ] Combine `updatePrimaryDataSource` method and `updateMemberState` into
`findPrimaryMemberDataSource` method, and post
`PrimaryMemberDataSourceChangeEvent` event
- [ ] DatabaseDiscoveryRule subscribe `PrimaryMemberDataSourceChangeEvent`
and sync `dataSourceRules`.
--
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]