Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-1701

Reduce contention in CatalogManager::ScopedLeaderSharedLock

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 1.13.0
    • master
    • None

    Description

      CatalogManager::ScopedLeaderSharedLock::ScopedLeaderSharedLock() currently holds a spinlock while accessing consensus->ConsensusState(). That call makes a copy of a protobuf, which requires allocation and a later deallocation. Every master lookup RPC needs to go through this path, so this can become a contention point under heavy multi-client load.

      Attachments

        Activity

          People

            aserbin Alexey Serbin
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: