Skip to content

HOTFIX: add SuppressWarnings in TieredStorageTestUtils #19494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

m1a2st
Copy link
Collaborator

@m1a2st m1a2st commented Apr 16, 2025

We need add SuppressWarnings annotation, because log.cleaner.enable
mark deprecated.

Reviewers: PoAn Yang [email protected], Kuan-Po Tseng
[email protected], TengYao Chi [email protected], Chia-Ping
Tsai [email protected]

@github-actions github-actions bot added triage PRs from the community tests Test fixes (including flaky tests) storage Pull requests that target the storage module small Small PRs labels Apr 16, 2025
@@ -53,7 +54,6 @@
import static org.apache.kafka.server.log.remote.storage.RemoteLogManagerConfig.REMOTE_LOG_STORAGE_SYSTEM_ENABLE_PROP;
import static org.apache.kafka.server.log.remote.storage.RemoteLogManagerConfig.REMOTE_STORAGE_MANAGER_CLASS_NAME_PROP;
import static org.apache.kafka.server.log.remote.storage.RemoteLogManagerConfig.REMOTE_STORAGE_MANAGER_CONFIG_PREFIX_PROP;
import static org.apache.kafka.storage.internals.log.CleanerConfig.LOG_CLEANER_ENABLE_PROP;
Copy link
Member

Choose a reason for hiding this comment

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

It seems we don't need this change, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If we use static import, it will mark deprecated warning at import, thus I think we should not use static import
CleanShot 2025-04-17 at 00 43 51

Copy link
Member

Choose a reason for hiding this comment

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

Got it.

Copy link
Member

@brandboat brandboat left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the quick fix!

@chia7712 chia7712 changed the title HOTFIX add SuppressWarnings in TieredStorageTestUtils HOTFIX: add SuppressWarnings in TieredStorageTestUtils Apr 16, 2025
@chia7712 chia7712 merged commit b4e75fb into apache:trunk Apr 17, 2025
33 checks passed
@github-actions github-actions bot removed the triage PRs from the community label Apr 17, 2025
rreddy-22 pushed a commit to rreddy-22/kafka-rreddy that referenced this pull request Apr 21, 2025
We need add SuppressWarnings annotation, because `log.cleaner.enable`
mark deprecated.

Reviewers: PoAn Yang <[email protected]>, Kuan-Po Tseng
<[email protected]>, TengYao Chi <[email protected]>, Chia-Ping Tsai
<[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small Small PRs storage Pull requests that target the storage module tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants