soulasuna commented on a change in pull request #16270:
URL: https://github.com/apache/shardingsphere/pull/16270#discussion_r832772160



##########
File path: 
shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/ClusterContextManagerBuilder.java
##########
@@ -150,10 +152,12 @@ private ContextManager createContextManager(final 
ClusterPersistRepository repos
                                                 final Properties 
transactionProps, final ModeConfiguration modeConfiguration) {
         InstanceContext instanceContext = new 
InstanceContext(metaDataPersistService.getComputeNodePersistService().loadComputeNodeInstance(instanceDefinition),
                 new ClusterWorkerIdGenerator(repository, 
metaDataPersistService, instanceDefinition), modeConfiguration);
+        DistributeLockContext distributeLockContext = new 
DistributeLockContext(instanceContext, new 
GlobalLockRegistryService(repository));
+        distributeLockContext.synchronizeGlobalLock();

Review comment:
       Three things to do here
   1. Synchronize the global lock state,
   2. Lock resources,
   3. ACK response




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