Skip to content

Conversation

@aryangupta1998
Copy link
Contributor

What changes were proposed in this pull request?

Currently, OneReplicaPipelineSafeModeRule depends on processing of PipelineReportFromDatanode to validate the rule. We should avoid processing any reports in Safamode rule and depend on the PipelineManager here.

What is the link to the Apache JIRA

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

How was this patch tested?

Tested Manually.


for (Pipeline pipeline : openRatisPipelines) {
PipelineID pipelineID = pipeline.getId();
boolean allDNsPipelineReported = pipeline.getNodeSet().size() == 3;
Copy link
Member

Choose a reason for hiding this comment

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

Could you explain why line 195 check is added? The old logic seems not check that. TIA!

Copy link
Contributor Author

@aryangupta1998 aryangupta1998 May 12, 2025

Choose a reason for hiding this comment

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

This check ensures that all three DN have reported that particular pipeline. We can do pipeline.getNodeSet().size() > 1 to check for at least one replica!

}

@VisibleForTesting
public DatanodeDetails removeFirstFromNodeStatus() {
Copy link
Member

Choose a reason for hiding this comment

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

I think these two removeFirstFromNodeStatus and setInNodeStatus can be removed. To make a 2-node pipeline, use pipelineManager.deletePipeline to delete original one and add a 2-node one back through it.

@github-actions
Copy link

This PR has been marked as stale due to 21 days of inactivity. Please comment or remove the stale label to keep it open. Otherwise, it will be automatically closed in 7 days.

@github-actions
Copy link

github-actions bot commented Dec 6, 2025

This PR has been marked as stale due to 21 days of inactivity. Please comment or remove the stale label to keep it open. Otherwise, it will be automatically closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants