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

Fix the expected number of deletion batches in change_streams_pre_image_removal_job.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • QE 2022-04-18
    • 46

      While running the test in `batchedDeletion` "mode", the pre-images are not deleted in doc-by-doc fashion, but rather utilise the efficient multi-deletes functionality.

      The number of batches is at least equal to two in the test case as we run the one deletion per collection range.

      However, the `BatchedDeleteStage` may perform deletions in multiple batched depending on for example timing. (it will store the fetched documents in a buffer until the  underlying stage EOFs or a timeout is hit, then the deletion is performed)

      This is why the number of batches may vary and needs to be accounted in the test.

            Assignee:
            denis.grebennicov@mongodb.com Denis Grebennicov
            Reporter:
            denis.grebennicov@mongodb.com Denis Grebennicov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: