You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "nabarun (JIRA)" <ji...@apache.org> on 2018/02/15 19:38:00 UTC
[jira] [Created] (GEODE-4689) Improved mechanism to wait for
partition region colocation to complete.
nabarun created GEODE-4689:
------------------------------
Summary: Improved mechanism to wait for partition region colocation to complete.
Key: GEODE-4689
URL: https://issues.apache.org/jira/browse/GEODE-4689
Project: Geode
Issue Type: Bug
Components: lucene
Reporter: nabarun
File location : IndexRepositoryFactory.java
Method : computeIndexRepository
Code:
{code:java}
PartitionRegionConfig prConfig =
(PartitionRegionConfig) prRoot.get(fileRegion.getRegionIdentifier());
while (!prConfig.isColocationComplete()) {
prConfig = (PartitionRegionConfig) prRoot.get(fileRegion.getRegionIdentifier());
}
{code}
Solution Acceptance :
We should not depend on an infinite while loop to wait for all partition region colocations to be completed.
We should find a better way and use that to replace the code above.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)