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

Fix intermittent failure in read_pref_cmd.js due to direct connection to shard

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • CAR Team 2024-04-29
    • 24
    • 1

      read_pref_cmd.js fails intermittently because it uses a direct connection to the shard. It is sharding a collection, but since SERVER-80135, shardCollection information refresh has been converted from sync async, and hence if a direct connection ends up using stale information the command fails with sharding status of collection read_pref_cmd.testCollSharded is not currently known and needs to be recovered.

      The fix is to not use the direct connection, or do something before to force a refresh.

            Assignee:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Reporter:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: