Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1398

Concurrency issue in SCMConnectionManager#getValues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.1
    • None
    • Done

    Description

      testStartStopDatanodeStateMachine is flaky, causing occasional pre-commit build failuresHDDS-1332 added some logging to find out more about the cause.

      I think the problem is not test-specific, and is caused by the following: SCMConnectionManager#scmMachines is a plain HashMap, guarded by a ReadWriteLock in most places where it's used, except getValues().  The method also returns the values collection without any write protection (though currently none of the callers modify it).

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m