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

Create the CollectionRangeDeleter class shell without implementation

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.10
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Sharding 17 (07/15/16)

      Description

      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();
      };
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              leon.zaruvinsky Leon Zaruvinsky
              Reporter:
              dianna.hohensee Dianna Hohensee
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: