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

scaled_collection_stats.js should use _waitForDelete in moveChunk

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Sharding 2021-02-08
    • Linked BF Score:
      23

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            jordi.serra-torrens Jordi Serra Torrens
            Reporter:
            jordi.serra-torrens Jordi Serra Torrens
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: