Skip to content

Conversation

@Gargi-jais11
Copy link
Contributor

What changes were proposed in this pull request?

Current all disk balancer requests to SCM will check the admin permission.

It is necessary when it's a write kind operation, start, stop, update.
But it's not necessary to enforce the admin permission on read operation, status, report.

What is the link to the Apache JIRA

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

How was this patch tested?

Written robot tests to check for the admin permission on disk balancer requests to scm.

hadoop-ozone/dist/src/main/smoketest/admincli/testdiskbalancer.robot

Copy link
Contributor

@Tejaskriya Tejaskriya left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @Gargi-jais11, Left some improvement suggestions below to reduce the code duplication across the various test cases

@Gargi-jais11 Gargi-jais11 requested a review from Tejaskriya March 20, 2025 11:09
@Gargi-jais11 Gargi-jais11 marked this pull request as ready for review March 20, 2025 11:38
@Tejaskriya Tejaskriya requested a review from ChenSammi March 20, 2025 13:58
Copy link
Contributor

@Tejaskriya Tejaskriya left a comment

Choose a reason for hiding this comment

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

Thanks for making the changes, LGTM!

@Gargi-jais11 Gargi-jais11 requested a review from ChenSammi March 21, 2025 06:55
@ChenSammi ChenSammi merged commit b3cb562 into apache:HDDS-5713 Mar 21, 2025
43 checks passed
@ChenSammi
Copy link
Contributor

Thanks @Gargi-jais11 and @Tejaskriya .

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