Skip to content

Conversation

@sjhajharia
Copy link
Contributor

Currently on running ./gradlew clean jar on trunk, the following two warnings pop up:

> Task :metadata:compileTestJava
Note: ~/kafka/metadata/src/test/java/org/apache/kafka/controller/metrics/QuorumControllerMetricsTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :server:compileTestJava
Note: ~/kafka/server/src/test/java/org/apache/kafka/server/AssignmentsManagerTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

The PR attempts to fix the same

@github-actions github-actions bot added triage PRs from the community core Kafka Broker tests Test fixes (including flaky tests) kraft small Small PRs and removed triage PRs from the community labels Oct 31, 2025
Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@sjhajharia thanks for this patch. Could you fix other warnings as well?

> Task :streams:compileTestJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/chia7712/project/kafka/streams/src/test/java/org/apache/kafka/streams/processor/internals/TaskManagerTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :transaction-coordinator:compileTestJava
Note: /home/chia7712/project/kafka/transaction-coordinator/src/test/java/org/apache/kafka/coordinator/transaction/TransactionLogTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :connect:runtime:compileTestJava
Note: /home/chia7712/project/kafka/connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSinkTaskTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

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

Labels

ci-approved core Kafka Broker kraft small Small PRs tests Test fixes (including flaky tests)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants