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

resharding_collection_cloner*.js tests must wait for config.cache.chunks to be persisted

    • Fully Compatible
    • Sharding 2021-05-03
    • 141
    • 1

      The _shardsvrShardCollection command doesn't wait for the config.cache.chunks entries to have been written on itself (i.e. the primary shard for the database).

      Note that while _flushRoutingTableCacheUpdates would wait for the config.cache.chunks entries to have been written, the _flushRoutingTableCacheUpdates command is only run by the primary shard for the database on all of the other shards owning chunks for the now-sharded collection.

      The resharding_collection_cloner*.js tests should be updated to explicitly run the {_flushRoutingTableCacheUpdates: temporaryReshardingCollection.getFullName()} command on the shards.

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: