pallavithegod commented on code in PR #3362:
URL: https://github.com/apache/hugegraph/pull/3362#discussion_r4306782071
##########
hugegraph-store/hg-store-core/src/main/java/org/apache/hugegraph/store/pd/DefaultPdProvider.java:
##########
@@ -133,7 +133,10 @@ public long registerStore(Store store) throws PDException {
store);
long storeId = 0;
- Metapb.Store protoObj = store.getProtoObj();
+ Metapb.Store protoObj = store.getProtoObj().toBuilder()
+ .setState(store.getState() ==
Metapb.StoreState.Up ?
Review Comment:
Registration now returns the authoritative Store state, and the provider
warns only for Pending. Older response formats use a fresh lookup; the normal
Offline/Up handshake regression verifies that the provider no longer reads a
stale cached Store.
--
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]