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

Investigate ep_testsuite not catching races under TSAN

    XMLWordPrintable

Details

    • 1
    • KV 2022-Feb, KV March-22

    Description

      A family of races (MB-48816) have been caught with TSAN-build cluster_run, but were not caught by relevant ep_testsuite tests.


      Stat groups: "dcp", "dcpagg", and "checkpoint" previously wrote responses with add_stat from a background task. This has been identifed as racy by TSAN in a cluster_run in MB-48816.

      ep_testsuite and ep_testsuite_dcp tests exercise all of these groups, but did not report races despite them being present for a reasonable amount of time.

      Investigate whether this is a flaw in ep_testsuite which may mask other races (e.g., MockCookie differs from Cookie in that it has a mutex, and some operations lock it), or if the tests simply do not exercise the relevant code paths, and need to be improved.

      Attachments

        Issue Links

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

          Activity

            People

              drigby Dave Rigby (Inactive)
              james.harrison James Harrison (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