Skip to content

Conversation

@adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

Ozone debug and repair tools use server-side internal code, which will require Java 17 after HDDS-14439. This PR creates new submodules ozone-cli-debug and ozone-cli-repair to remove the dependency on server-side modules from ozone-tools, thus keep CLI commands in that module usable with Java 8.

Side-effect fixes:

  • Change module of ozone daemonlog, because LogLevel is in hdds-server-framework.
  • Fix module of ozone tenant, because TenantShell is in ozone-cli-shell.
  • Set DatabaseHelper.LOG before static initializer calls loadProperties(), which uses LOG in case of error.

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

How was this patch tested?

CI:
https://github.com/adoroszlai/ozone/actions/runs/21830993207

@adoroszlai adoroszlai self-assigned this Feb 9, 2026
@adoroszlai adoroszlai added the build Pull request that modifies the build process label Feb 9, 2026
@adoroszlai
Copy link
Contributor Author

@dombizita @errose28 @sarvekshayr please take a look

Copy link
Contributor

@sarvekshayr sarvekshayr left a comment

Choose a reason for hiding this comment

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

Thanks @adoroszlai for working on this.

Based on my understanding, I’ve reviewed and verified the changes, and they look good to me.

Copy link
Contributor

@dombizita dombizita 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 doing this in scope of the Java 17 changes, it looks good to me. There isn't any doc impact of this, right? I didn't find any place where we mentioned where the tools code is stored.

@adoroszlai
Copy link
Contributor Author

There isn't any doc impact of this, right? I didn't find any place where we mentioned where the tools code is stored.

Only in the design doc, but that describes the state of code at that time, so I think it does not need to be updated.

@adoroszlai adoroszlai merged commit f76791d into apache:master Feb 11, 2026
55 of 56 checks passed
@adoroszlai adoroszlai deleted the HDDS-14595 branch February 11, 2026 12:21
@adoroszlai
Copy link
Contributor Author

Thanks @dombizita, @sarvekshayr for the review.

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

Labels

build Pull request that modifies the build process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants