-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
KAFKA-16472: Fix integration tests in Java with parameter name #15663
Conversation
@FrankYang0529 , thanks for the fix! Nice catch!
|
I don't have a good idea to do the check in gradle or before the tests startup. The possible way maybe check whether For example, before the fix, After the fix, both test cases show However, this way still doesn't check whether "parameter name" is correct. Probably, we can give another check is that if display name contains |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@FrankYang0529 Could you file jira to trace this? |
build.gradle
Outdated
@@ -270,6 +270,7 @@ subprojects { | |||
options.compilerArgs << "-Xlint:-serial" | |||
options.compilerArgs << "-Xlint:-try" | |||
options.compilerArgs << "-Werror" | |||
options.compilerArgs << "-parameters" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add comments for this arg?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated it. Thank you.
Yes, added it. https://issues.apache.org/jira/browse/KAFKA-16476 |
Sorry @FrankYang0529 , I saw this: https://stackoverflow.com/questions/44067477/drawbacks-of-javac-parameters-flag
I think the class file size increasing is indeed a direct drawback after adding |
Or we can add the new arg to compileTestJava only to avoid impacting production binary |
Signed-off-by: PoAn Yang <payang@apache.org>
9a6a6e4
to
c1c59c9
Compare
Updated it as |
@ijuma Could you please take a look at this PR? |
I'm going to merge this PR in order to make other tool tests can run with KRaft. We can address all late reviews in other PRs. |
Following test cases don't really run kraft case. The reason is that the test info doesn't contain parameter name, so it always returns false in TestInfoUtils#isKRaft. 1) TopicCommandIntegrationTest 2) DeleteConsumerGroupsTest 3) AuthorizerIntegrationTest 4) DeleteOffsetsConsumerGroupCommandIntegrationTest We can fix it by adding options.compilerArgs << '-parameters' after Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
LGTM! Thanks @FrankYang0529 ! Really nice catch! |
Following test cases don't really run kraft case. The reason is that the test info doesn't contain parameter name, so it always returns false in TestInfoUtils#isKRaft.
We can fix it by adding
options.compilerArgs << '-parameters'
afterkafka/build.gradle
Lines 264 to 273 in 376e9e2
Also, we have to add
String quorum
to cases in DeleteOffsetsConsumerGroupCommandIntegrationTest.Committer Checklist (excluded from commit message)