Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-10027

Too many locks in Global Thread Manager

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 3.0
    • 3.0
    • couchbase-bucket
    • Security Level: Public
    • None

    Description

      whenever we invoke ExecutorPool API, we should grab the two or three locks. For example, ExecutorPool::schedule API requires grabbing two locks (one for ExecutorPool and the other for TaskQueue). We don't need to grab two locks for scheduling a task. ExecutorPool::snooze API even requires grabbing three locks.

      We should avoid gabbing more than one lock in a single thread if possible because it might cause a deadlock issue.

      Attachments

        For Gerrit Dashboard: MB-10027
        # Subject Branch Project Status CR V

        Activity

          People

            sundar Sundar Sridharan (Inactive)
            sundar Sundar Sridharan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty