Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-3924 Create Lucene Index on an existing region
  3. GEODE-4689

Improved mechanism to wait for partition region colocation to complete.

    XMLWordPrintableJSON

Details

    Description

      File location : IndexRepositoryFactory.java

      Method : computeIndexRepository

      Code:

      PartitionRegionConfig prConfig =
          (PartitionRegionConfig) prRoot.get(fileRegion.getRegionIdentifier());
      while (!prConfig.isColocationComplete()) {
        prConfig = (PartitionRegionConfig) prRoot.get(fileRegion.getRegionIdentifier());
      }
      

       

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nnag Nabarun Nag
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 20m
                  2h 20m