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

Use unordered bulk writes in cleanup_collection.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Mark Benvenuto
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: