Skip to content

HDDS-3740. PipelineStateManagerV2Impl#removePipeline will remove pipeline from db in case of failure#2415

Merged
ChenSammi merged 2 commits intoapache:masterfrom
JacksonYao287:HDDS-3740
Jul 19, 2021
Merged

HDDS-3740. PipelineStateManagerV2Impl#removePipeline will remove pipeline from db in case of failure#2415
ChenSammi merged 2 commits intoapache:masterfrom
JacksonYao287:HDDS-3740

Conversation

@JacksonYao287
Copy link
Contributor

What changes were proposed in this pull request?

When PipelineStateManagerV2Impl#removePipeline is called, we are removing the pipeline from db and then making the call to pipelineStateMap#removePipeline.
pipelineStateMap#removePipeline can throw an exception if it's not able to remove the pipeline, this will leave the db in inconsistent state.

What is the link to the Apache JIRA

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

How was this patch tested?

unit test

@ChenSammi
Copy link
Contributor

LGTM,+1.

@ChenSammi ChenSammi merged commit 9081612 into apache:master Jul 19, 2021
@JacksonYao287 JacksonYao287 deleted the HDDS-3740 branch July 20, 2021 11:46
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.

2 participants