Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-7665 Ability to clear a Partitioned Region
  3. GEODE-9261

Fix PartitionedRegionClearWithConcurrentOperationsDUnitTest validateRegionVersionVectorsConsistency

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: regions

      Description

      The validateRegionVersionVectorsConsistency method should be fixed to fetch rvv2Members from rvv2 instead of rvv1. Unfortunately, the validation breaks if this change is made. The test needs to be fixed and the underlying problem needs to be identified and fixed before GEODE-7665 can be merged to develop.

        /**
         * Asserts that the RegionVersionVectors for both buckets are consistent.
         *
         * @param bucketId Id of the bucket to compare.
         * @param bucketDump1 First bucketDump.
         * @param bucketDump2 Second bucketDump.
         */
        private void validateRegionVersionVectorsConsistency(int bucketId, BucketDump bucketDump1,
            BucketDump bucketDump2) {
          RegionVersionVector<?> rvv1 = bucketDump1.getRvv();
          RegionVersionVector<?> rvv2 = bucketDump2.getRvv();
      
          Map<VersionSource<?>, RegionVersionHolder<?>> rvv2Members =
              new HashMap<>(rvv1.getMemberToVersion()); // TODO: getting rvv2Members from rvv1 is wrong
          Map<VersionSource<?>, RegionVersionHolder<?>> rvv1Members =
              new HashMap<>(rvv1.getMemberToVersion());
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              klund Kirk Lund
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: