Skip to content

Conversation

@amaliujia
Copy link
Contributor

What changes were proposed in this pull request?

During initialization, PipelineStateManagerV2Impl will rewrites pipeline info into the store. We should avoid it.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-4533

How was this patch tested?

UT

iterator = pipelineStore.iterator();
while (iterator.hasNext()) {
Pipeline pipeline = iterator.next().getValue();
addPipeline(pipeline.getProtobufMessage());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addPipeline will do the following:

      Pipeline pipeline = Pipeline.getFromProtobuf(pipelineProto);
      pipelineStore.put(pipeline.getId(), pipeline);
      pipelineStateMap.addPipeline(pipeline);
      nodeManager.addPipeline(pipeline);

pipelineStore.put(pipeline.getId(), pipeline); should be avoided.

@amaliujia
Copy link
Contributor Author

R: @runzhiwang @GlenGeng @ChenSammi @bshashikant

@GlenGeng-awx
Copy link
Contributor

+1
Waiting for CI. Thanks for quick fix!

Copy link
Contributor

@runzhiwang runzhiwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@amaliujia
Copy link
Contributor Author

@GlenGeng @runzhiwang thanks! CI all green now

@runzhiwang runzhiwang merged commit 572a7de into apache:HDDS-2823 Jan 15, 2021
@runzhiwang
Copy link
Contributor

@amaliujia Thanks the patch. @GlenGeng Thanks for review. I have merged the patch.

@amaliujia amaliujia deleted the HDDS-4533 branch January 15, 2021 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants