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

parsed value unwrapping should use locks

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      Although we don't like values to be used concurrently, there's a couple of places where this happens (unnest being one).
      We have a mutex which is used for concurrent Field() and Index() access.
      Snag is, unwrap clears fields and elements without mutex which could potentially lead to concurrent map reads and writes.
      We have no such case in query, but one suspected case in the projector, so it's probably best to add concurrency control in unwrap().

      Attachments

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

        Activity

          People

            marco.greco Marco Greco (Inactive)
            marco.greco Marco Greco (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty