CAICAIIs opened a new pull request, #1126: URL: https://github.com/apache/incubator-seata-go/pull/1126
## What changed This PR implements the PR1 discovery/registry groundwork from the GSoC plan. - Add a small provider registry for registry types already present in seata-go: file, etcd/etcd3, raft, and namingserver. - Add `InitRegistryWithError` so init failures can be returned to callers. `InitRegistry` still panics on error to keep the existing behavior. - Add `AddressStore` as the registry-owned snapshot store for service instances, keyed by cluster. - Move etcd3 lookup and watch updates through `AddressStore` while keeping the existing key/value parsing and lookup behavior. ## Out of scope This PR does not add Nacos, ZooKeeper, Consul, or Redis clients. It also leaves seata-ctl integration and SessionManager connection updates for later PRs. ## Tests - `go test ./pkg/discovery -run 'Test(File|Etcd|Init|AddressStore|RegistryProvider|Naming|Raft)'` - `go test ./pkg/discovery` - `go test ./pkg/discovery -run TestAddressStoreConcurrentUpdateSnapshot -race` - `git diff --check` -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
