Autosplit tests may get one less chunk due to wuow commit delay

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • v5.1
    • Sharding EMEA 2021-11-01
    • 157
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Reasons:

      1. With the new splitter algorithm (SERVER-55028 + SERVER-60009) it must not be possible to end up with more chunks than expected.
      2. The chunk splitter task is spawned by the sharding observer before the actual commit of the WriteUnitOfWork of the insert operation that is being observed. So it is actually possible for the last splitting round to be a no-op if the insert has not committed yet at the time of index scanning (intermediate split rounds could fail as well but subsequent ones would catch-up the missing splits).

      Tests to change:

            Assignee:
            Pierlauro Sciarelli
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: