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

Await all operations committed in ShardingTest::checkUUIDsConsistent hook (lookup.js)

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.6
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2018-04-23
    • 56

      jstests/aggregation/sources/lookup/lookup.js manually creates a ShardingTest, and because it can run in a read concern majority passthrough, the checkUUIDs hook can be overriden to run with majority read concern, which it does not support because the metadata collections it reads from are written with local write concern. SERVER-33876 made ShardingTest default to 1 node replica sets instead of standalone nodes, which exposes this problem because now locally written data is not guaranteed to be immediately seen by majority reads.

      The checkUUIDs hook should await all operations to be committed before checking the shard metadata collections.

            Assignee:
            blake.oler@mongodb.com Blake Oler
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: