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

Replace ConcurrentHashMap with HashMap in PipelineStateMap

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Done
    • 1.4.0
    • 2.0.0
    • SCM

    Description

      There is a class PipelineStateMap with 2 fields:

      1. ConcurrentHashMap<PipelineID, Pipeline> pipelineMap
      2. ConcurrentHashMap<PipelineID, NavigableSet<ContainerID>> pipeline2container

      Both read and write in PipelineStateMap are protected by lock in PipelineStateManagerImpl .

      We can safely replace ConcurrentHashMap with pure HashMap

      Attachments

        Issue Links

          Activity

            People

              montura Andrei Mikhalev
              montura Andrei Mikhalev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: