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/03/14 20:38:00 UTC
[jira] [Closed] (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 closed GEODE-4689.
--------------------------
> 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
> Labels: pull-request-available
> Fix For: 1.6.0
>
> Time Spent: 2h 20m
> Remaining Estimate: 0h
>
> 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)