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

batched_multi_deletes_large_transaction.js fails on slow machines due to unexpected batching behavior

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Execution Team 2022-11-14
    • 149

      On slow machines, batched_multi_deletes_large_transaction.js occasionally fails because the delete operation removes a subset of the documents in the collection rather than fail outright with a TransactionTooLarge error. This is because the batched delete stage may break up the overall delete request into multiple batches to avoid exceeding the threshold set in batchedDeletesTargetBatchTimeMS. This setting is intended to avoid having each batch of deletes generated by the delete stage take too long to execute on both the primary and secondary nodes.

      For the purposes of this test, we would like to have the batched query stage batch all the delete operations in a single batch. Therefore, we should set batchedDeletesTargetBatchTimeMS threshold to be unlimited by making it zero per IDL documentation.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: