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

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • regions

    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

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

              Dates

                Created:
                Updated: