[ https://issues.apache.org/jira/browse/GEODE-8035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17102803#comment-17102803 ]
ASF GitHub Bot commented on GEODE-8035: --------------------------------------- jchen21 commented on a change in pull request #5014: URL: https://github.com/apache/geode/pull/5014#discussion_r422289699 ########## File path: geode-core/src/main/java/org/apache/geode/internal/cache/DiskStoreFactoryImpl.java ########## @@ -141,10 +141,9 @@ DiskStoreImpl createOwnedByRegion(String name, boolean isOwnedByPR, @Override public DiskStore create(String name) { this.attrs.name = name; - // As a simple fix for 41290, only allow one DiskStore to be created - // at a time per cache by syncing on the cache. DiskStore result; - synchronized (this.cache) { + try { + this.cache.lockDiskStore(name); Review comment: The `unlock` in the finally block does nothing, if the `lock` fails. The `unlock` is essentially a `CountDownLatch.countDown()`. If the current count is greater than zero then it is decremented. If the current count equals zero then nothing happens. ---------------------------------------------------------------- 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, GeodeOperationAPI > > 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)