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

Implementing the barebones code to clear a partitioned region

    XMLWordPrintableJSON

    Details

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

      Description

      A clear() Java API on Partitioned Region

      • Acquires a distributed lock
      • Declares itself the co-ordinator
      • Gets the primary list of buckets and sends clear messages
      • After primaries are cleared and then clear messages are sent to the secondaries

      If all the steps are successful then API return success

       

      Acceptance :

      • Unit tests to have complete code coverage
      • DUnit tests where clear op on Partitioned Region is successful (Region size = 0)
      • DUnit test where all concurrent clear() calls are made. One operation should succeed while sending appropriate messages to the failing API calls
      • Test coverage for PartitionedRegion with redundancy levels of 0 and more.
      • Test coverage to when a member departs in this scenario
      • Test coverage to when a member restarts in this scenario

      NOTE: 

      Analyze if there needs to be tests for offheap regions. If it is needed then write the tests and make the appropriate code changes to make the offheap tests pass.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nnag Nabarun Nag
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: