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/22 00:33:00 UTC
[jira] [Updated] (GEODE-4689) Improved mechanism to wait for
partition region colocation to complete.
[ https://issues.apache.org/jira/browse/GEODE-4689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
nabarun updated GEODE-4689:
---------------------------
Issue Type: Sub-task (was: Bug)
Parent: GEODE-3924
> 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: Sub-task
> Components: lucene
> Reporter: nabarun
> Priority: Major
>
> 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)