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

make autosplit_low_cardinality.js wait for all chunkSplit op after every insert

      The autosplit functionality is best effort. In fact if we run two insert that should both trigger trigger an autosplit on the same shard, it is not guarantee that the second insert will actually cause a chunk split.
      This is the case when the second insert call a ChunkSplitStateDriver::tryInitiateSplit while a previous chunk split operation is still running. The second attempt will be simply abandoned without any retry logic.

      This is similar to SERVER-43960, we need to call waitForOngoingChunkSplits() after every insertion.

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: