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

Test wrongly assumes multi writes outside of transactions are atomic

    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0, v7.3, v7.0, v6.0, v5.0
    • CAR Team 2024-04-15, CAR Team 2024-04-29
    • 5

      timeseries_multiple_mongos.js is currently checking how many times a multi write without shard key is being executed in the cluster (for example here). This is not correct, multi writes are not atomic, meaning, some interleaving might cause them to be executed more than once, in this case, a hedge read to a secondary might cause the non primary db shard to refresh the metadata, accepting the update which will be sent with ShardVersion::IGNORED.

      We should remove all writes without shard key from the test, that is, all updates and deletes with q: {}.

            Assignee:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Reporter:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: