Shard objects should cache their own connection strings

XMLWordPrintableJSON

    • Fully Compatible
    • Sharding 2020-10-05
    • 16
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, calling getConnString() on a ShardRemote object reaches back into the RSM to determine the connection string. This can result in taking an RSM mutex, and so requires care around which mutexes are held when calling getConnString().

      However, the reworking of the RSM-related ShardRegistry functionality on SERVER-46202 (specifically _latestConnStrings) means that this behaviour should no longer be necessary. Instead, Shard objects should now be able to simply remember and use the connection string they were created with (ie. what is currently called originalConnString(), which could then go away).

              Assignee:
              Kevin Pulo
              Reporter:
              Kevin Pulo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: