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

RangeDeleterService test util needs to insert range deletion task with pending set

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • v6.2
    • Hide

      Add sleep(2) between the task insertion and the update in the range_deleter_service_test_util and running the CSR test 
      WaitForCleanBlocksBehindAllScheduledDeletions.

      Show
      Add sleep(2) between the task insertion and the update in the range_deleter_service_test_util and running the CSR test  WaitForCleanBlocksBehindAllScheduledDeletions.
    • Sharding EMEA 2022-12-12
    • 5

      In the range_deleter_service_test_util, there is a function to register a task with the range deleter. It registers the task as pending and then unsets the pending flag. However, the pending flag is not set on the task in the collection_sharding_runtime_test, so when the task is inserted, it is not marked as pending. This can lead to the update removing the pending flag failing since the range deletion has already completed and the task has been removed.

      We need to ensure that the document that is being persisted has the pending flag set before it is unset.

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: