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

Allow unsharded connections to trigger EgressMetadataHook::readReplyMetadata through ShardingConnectionHook

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Cluster Scalability

      Currently, ShardingConnectionHook only attaches the reply metadata readers of its egressHook if _shardedConnections is true. For Global Point in Time reads, we want all connections from mongos to check for a "lastCommittedOpTime" field in responses, so we will need to allow for attaching some reply metadata hooks for unsharded connections as well, in particular those from the global connection pool.

      Notably the replica set monitor currently uses a ScopedDBConnection to send isMaster commands, which uses unsharded connections from the globalConnPool, and it is important to the GPITR design that these commands track lastCommittedOpTimes.

            Assignee:
            backlog-server-cluster-scalability [DO NOT USE] Backlog - Cluster Scalability
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: