Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-8926 Umbrella for further EC improvements
  3. HDDS-8919

Allow EC pipelines to be created and then added to pipeline manager in two steps

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • None
    • 1.4.0
    • None

    Description

      As it stands, the method:

       PipelineManager.createPipeline(ReplicationConfig replicationConfig,
            List<DatanodeDetails> excludedNodes, List<DatanodeDetails> favoredNodes)
      

      Is used to create a new pipeline and add it to the Pipeline manager. This creation and adding is all performed under a single lock The somewhat expensive node selection process from the placement policy is performed under the lock.

      For Ratis pipelines, this could be important, as pipelines are created and limited based on the number of existing pipelines on the nodes.

      EC pipelines do not have such a limitation, and they also need to be created much more frequently due to their short lived nature.

      This PR changes the pipeline manager to have a buildPipeline Method, which calls the placement policy and creates the new pipeline object without any locks.

      Then there is an addPipeline method to add the created pipeline to the pipelineManager under the lock.

      This will allow for the WritableECPipelineProvider to build pipelines without blocking other threads and then add them to the manager under a lock, reducing the amount of work performed under a lock. This change would need to be made in another PR.

      Attachments

        Issue Links

          Activity

            People

              sodonnell Stephen O'Donnell
              sodonnell Stephen O'Donnell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: