[ https://issues.apache.org/jira/browse/GEODE-8035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17098221#comment-17098221 ]
ASF GitHub Bot commented on GEODE-8035: --------------------------------------- agingade commented on a change in pull request #5014: URL: https://github.com/apache/geode/pull/5014#discussion_r419046473 ########## File path: geode-core/src/main/java/org/apache/geode/internal/cache/xmlcache/CacheCreation.java ########## @@ -521,12 +521,12 @@ void create(InternalCache cache) cache.initializePdxRegistry(); - for (DiskStore diskStore : diskStores.values()) { + diskStores.values().parallelStream().forEach(diskStore -> { DiskStoreAttributesCreation creation = (DiskStoreAttributesCreation) diskStore; if (creation != pdxRegDSC) { createDiskStore(creation, cache); } - } + }); Review comment: Based on the DiskStoreFactory.create() it can throw IllegalArgumentException; probably IOException based on the disk read failures. In case there are multiple disk-store failures, we will leave the parallel stream to throw the exception or we will capture all the exception and throw a single exception with all the disk=store names in it... I was thinking from unit test level; if there are already tests covering the new code. No need of new tests. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Parallel Disk Store Recovery when Cluster Restarts > -------------------------------------------------- > > Key: GEODE-8035 > URL: https://issues.apache.org/jira/browse/GEODE-8035 > Project: Geode > Issue Type: Improvement > Reporter: Jianxia Chen > Assignee: Jianxia Chen > Priority: Major > Labels: GeodeCommons > > Currently, when Geode cluster restarts, the disk store recovery is > serialized. When all regions share the same disk store, the restart process > is time consuming. To improve the performance, different regions can use > different disk stores with different disk controllers. And adding parallel > disk store recovery. This is expected to significantly reduce the time to > restart Geode cluster. -- This message was sent by Atlassian Jira (v8.3.4#803005)