imbajin commented on code in PR #3329:
URL: https://github.com/apache/hugegraph/pull/3329#discussion_r4264160320


##########
hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/core/GraphManager.java:
##########
@@ -1965,18 +2000,57 @@ private void listenChanges() {
             LOG.debug("RestServer accepts event '{}'", event.name());
             event.checkArgs(HugeGraph.class);
             HugeGraph graph = (HugeGraph) event.args()[0];
-            this.graphs.put(graph.spaceGraphName(), graph);
+            this.publishGraph(graph);

Review Comment:
   The local create path now registers and exports RPC before notifying 
GRAPH_CREATE. A regression uses the production Gremlin-first listener order and 
blocks export: bindings remain hidden until export succeeds, and export failure 
never exposes the graph. Metadata deletion failures also restore RPC only 
before backend clearing, while retaining the original exception. The targeted 
regressions and Java 17 compilation pass; distributed stale-read validation 
remains a separate gate.



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

Reply via email to