[SERVER-25014] Create the CollectionRangeDeleter class shell without implementation Created: 12/Jul/16  Updated: 19/Jul/16  Resolved: 13/Jul/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.3.10

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Leon Zaruvinsky
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
has to be done before SERVER-24573 Implement CollectionRangeDeleter rang... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 17 (07/15/16)
Participants:

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



 Comments   
Comment by Githook User [ 13/Jul/16 ]

Author:

{u'username': u'leonz', u'name': u'Leon Zaruvinsky', u'email': u'leon@mongodb.com'}

Message: SERVER-25014 Create CollectionRangeDeleter interface
Branch: master
https://github.com/mongodb/mongo/commit/1ab53c36312f4a4c5d97819811cced2664eb05ab

Generated at Thu Feb 08 04:08:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.