Skip to content

Conversation

@sumitagrawl
Copy link
Contributor

What changes were proposed in this pull request?

Exit of safemode status for follower when all rules are satisfied. This is as:

  • For leader applyTransaction completion is implicit before being choosen as leader.
  • For follower, exit safe mode rule as transaction sync and apply transaction keeps happening from leader node.

This change in reference to below point in JIRA HDDS-5263:
But once the SCM Ratis server started it will replay logs from Transactioninfo last applied Index, so after that I see all pipelines are removed. (might be due to close pipeline)

So this have no issue for leader node once choosen during leader election. And for follower node, no need follow same restriction as dynamically the pipeline can be closed on runtime and same can be created by leader continuously.
This check is present during startup to ensure SCM is writable and allow time to create pipeline as best effort and its not true always for the case of pipeline closure later on due to system unhealthy or other reason (System never moves back to Safemode later on as current behavior for any dynamic change later on).

What is the link to the Apache JIRA

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

How was this patch tested?

  • impact of existing test case

@sumitagrawl sumitagrawl requested a review from szetszwo January 26, 2026 20:02
@sumitagrawl sumitagrawl marked this pull request as ready for review January 27, 2026 17:40
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.

1 participant