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

server_write_concern_metrics_sharding.js can fail due to sharding catalog cache writes

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc17
    • Affects Version/s: 8.0.0-rc16
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • CAR Team 2024-08-19, Repl 2024-08-05
    • 0

      In BF-34065 we saw a couple cases where writes done via persistCollectionAndChangedChunks interleaved with calls to serverStatus that are done to check metrics and so the "after" metrics end up reflecting more updates or deletes than expected (I think this could also be a problem for inserts as well though we haven't seen it yet.)

      This is caused by the introduction of  SERVER-90864, which now causes createCollection to complete without installing filtering metadata in any of the data bearing nodes (this action will be now performed as part of the first read/write operation received).

      The test setup part of server_write_concern_metrics_sharding.js needs to be adapted to this new behavior.

            Assignee:
            paolo.polato@mongodb.com Paolo Polato
            Reporter:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: