Use unordered bulk writes in cleanup_collection.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 8.0.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • ALL
    • v8.0
    • Security 2024-08-05
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When cleanup_collection.js is run sharding_jscore_passthrough_with_config_transitions, bulk writes may be interrupted due to movePrimary. When the bulk write is retried by https://github.com/mongodb/mongo/blob/0c94927109991bfe4b474e4f7a3188185cdcd445/jstests/libs/override_methods/implicitly_retry_on_shard_transition_errors.js#L105-L121, the retry was failing since the first insert gets marked as a duplicate and not all rows get inserted.

              Assignee:
              Mark Benvenuto
              Reporter:
              Mark Benvenuto
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: