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

scaled_collection_stats.js should use _waitForDelete in moveChunk

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

      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@mongodb.com Jordi Serra Torrens
            Reporter:
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: