Add mutex to prevent concurrent access to map in s3_emit_operator_test.cpp

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Atlas Streams
    • Fully Compatible
    • ALL
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      https://github.com/10gen/mongo/blob/a87de9ca0dccea01fb99588aa437b1a8aa5c44e4/src/mongo/db/modules/enterprise/src/streams/exec/tests/s3_emit_operator_test.cpp#L254

       

      This map can be concurrently accessed when the timing is right and can cause a segfault error. We should add a mutex to prevent concurrent access to avoid these test failures.

              Assignee:
              Andrew Chen
              Reporter:
              Andrew Chen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: