Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-25014

Create the CollectionRangeDeleter class shell without implementation

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.10
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 17 (07/15/16)

      We want the class created and committed so that implementation can be done independently.

      Given the CollectionShardingState and MetadataManager infrastructure we need to implement a RangeDeleter task, which will be what drains the rangesToClean structure.
      The RangeDeleter task should have the following interface:

      class CollectionRangeDeleter {
      public:
          CollectionRangeDeleter(NamespaceString nss);
      
          /**
           * Starts deleting ranges and cleans up this object when it is finished.
           */
          void run();
      
          /**
           * Acquires the collection IX lock and checks whether there are new entries for the collection's
           * rangesToClean structure and if they are, deletes some small amount of entries and yields
           * using the standard query yielding logic.
           *
           * Returns true if there are more entries in the rangesToClean set or false otherwise.
           */
          bool cleanupNextRange();
      };
      

            Assignee:
            leon.zaruvinsky Leon Zaruvinsky
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: