Skip to content

Conversation

@Gargi-jais11
Copy link
Contributor

What changes were proposed in this pull request?

Use AtomicFileOutputStream to write DiskBalancerYaml file.

Because of the following reasons:

Using AtomicFileOutputStream prevents partial or corrupt writes by writing to a temp file and atomically replacing the original.
It will also be consistent with the other yaml files changed in HDDS-12531

What is the link to the Apache JIRA

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

How was this patch tested?

passed existing tests.

@Gargi-jais11 Gargi-jais11 marked this pull request as ready for review April 22, 2025 08:43
Copy link
Contributor

@jojochuang jojochuang left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@ChenSammi ChenSammi left a comment

Choose a reason for hiding this comment

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

Thanks @Gargi-jais11 , @jojochuang for the review.

@ChenSammi ChenSammi merged commit 801111c into apache:HDDS-5713 Apr 24, 2025
13 checks passed
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