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

Throw out connections created while adding a new shard

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • None
    • None
    • Networking, Sharding
    • None
    • ALL
    • Sharding 9 (09/18/15)

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: