ShardRemote::getConnString() is very expensive

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      ShardRemote::getConnString() involves locking a mutex at ReplicaSetMonitor::getServerAddress and a building a string from scratch into a StringBuffer in SetState::getConfirmedServerAddress()
      this should be cached to provide better performance and less lock contention.

            Assignee:
            Misha Tyulenev (Inactive)
            Reporter:
            Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: