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

Throw out connections created while adding a new shard

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Networking, Sharding
    • None
    • ALL
    • Sharding 9 (09/18/15)

      When adding a new shard, we create a connection to the new shard to validate some basic properties about it before adding it as a shard. This will put a connection to that shard into the connection pool used by the NetworkInterface. If we successfully add that shard, then try to query it, we run the risk of using the already existing connection, which will not have run the part of the ShardingNetworkConnectionHook that sends the shard initialization information. If before we finish the addShard command we throw out all connections to that shard then we know that the next time we try to talk to that shard we will have to create a new connection, guaranteeing that the shard initialization logic gets run

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: