OneSizeFitsQuorum commented on code in PR #11789:
URL: https://github.com/apache/iotdb/pull/11789#discussion_r1436697970
##########
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/statemachine/CreateRegionGroupsProcedure.java:
##########
@@ -173,40 +173,47 @@ protected Flow executeFromState(ConfigNodeProcedureEnv
env, CreateRegionGroupsSt
// Build RegionGroupCache immediately to make these successfully built
RegionGroup available
createRegionGroupsPlan
.getRegionGroupMap()
+ .entrySet()
+ .parallelStream()
Review Comment:
I suggest we remove the parallelism here, as it's very unlikely that
multiple sg regions will be created at the same time, but parallel here and
below might introduce deadlock issues in some scenarios
--
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]