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

Add back test coverage disabled due to replica set endpoint being unavailable for reads when lacking a majority

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 8.1.0-rc0, 8.0.0
    • Component/s: None
    • None
    • Catalog and Routing

      Some parts of the test infrastructure (e.g. test hooks) assume that they can connect to a replica set's nodes and run read operations on their local data (e.g. to run consistency validations). For regular replica sets, this assumption is sound even in the absence of a majority or when replication is stopped.

      However, currently a single-shard cluster with replica set endpoint and config shard can become unavailable for reads when a majority of nodes is down, or replication is stopped. This is because loading the latest filtering metadata depends on the ShardServerCatalogCacheLoader, which forces a refresh on the primary and wait for replication. This can result in operations failing with errors such as FailedToSatisfyReadPreference.

      This ticket tracks action items TODO(SERVER-98707) in the code that are will be resolved once this problem is resolved.

            Assignee:
            Unassigned Unassigned
            Reporter:
            joan.bruguera-mico@mongodb.com Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: