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

[TC] Use a sync.Map in TestClient

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • Morpheus
    • None
    • tools-common
    • None
    • 1

    Description

      TestClient currently uses a lock (first Mutex, then RWMutex) for its list of buckets. This has meant that it has been susceptible to deadlocks. A better way of implementing the test client would be to use a thread-safe map, eg sync.Map

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              james.lee James Lee
              Matt.Hall Matt Hall
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty