scaled_collection_stats.js should use _waitForDelete in moveChunk

XMLWordPrintableJSON

    • Fully Compatible
    • Sharding 2021-02-08
    • 23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In this moveChunk we should pass {_waitForDelete: true} to ensure that when the moveChunk command returns, the range deletion (which is started by the move chunks but executes asynchronously) has finished.

      If we don't do this, this $collStats could return a totalIndexSize different than what it will be after the range deletion has actually finished.

              Assignee:
              Jordi Serra Torrens
              Reporter:
              Jordi Serra Torrens
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: