-
Notifications
You must be signed in to change notification settings - Fork 137
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
Fix failing auto-commit check for kafka-clients >= v3.7.0 #762
Conversation
Signed-off-by: nscuro <nscuro@protonmail.com>
@rkolesnev One thing about this solution is that it raises the baseline This should probably be part of the changelog, and would likely even justify a version bump to |
/sem-approve |
@nscuro - hmm, I haven't dug too deeply into it - but i was under assumption that there aren't any breaking public interface changes - and for the checks on internals - like the auto commit check - it should be possible to support both versions with reflection checks i recon. |
Yes it definitely is. However since certain classes only exist in one version and not the other, these reflection checks will be quite extensive / ugly. I can try to look into it. Do you have any guidance on how it working with both versions can be tested in CI? It seems the GitHub Actions workflow had a matrix configuration to cover multiple Kafka versions, the same does not appear to be true for the Semaphore pipeline. |
Seems like a test is failing, but clicking on the Details link of the Semaphore check gives me a 404. |
Yeah - i understand the ugliness - actually it maybe possible to still compile against the 3.7+ version, but have a branching logic check to only cast / use the new classes if supplied Consumer object is 3.7+ - so reflection check would still be required but only top level one - to see if it should take 3.7+ checks or <3.7 checks.
Nope - not really - i am not sure about those GH Actions workflows - I do not have access to them anymore. |
Hmm yep - i have tested anonymous / public access to those jobs just yesterday - something must be off today - raised for internal IT to check. |
/sem-approve |
Regarding CI jobs - there seems to be something off either in permissions or in how link is generated - it's being looked at. |
Thanks @rkolesnev! I also saw your message in the Confluent Slack, I can confirm the Details link works now. :) Will revise the PR to support both < 3.7.0 and >= 3.7.0 versions of kafka-clients. |
Signed-off-by: nscuro <nscuro@protonmail.com>
The code now supports both versions of The
I am unsure why this is happening. The |
@nscuro - i've notices this as well. |
@rkolesnev The rebalance protocol was a good hint! I checked the release notes but didn't find anything related. I ended up comparing stack dumps when using Kafka v3.5.x vs 3.6.x. It turns out the issue is much simpler: The failing test uses Lines 191 to 198 in dc0b921
Since Kafka 3.6.x, This caused PC's To summarize, the issue was limited to test code, no impact on production logic. I'll raise a separate PR to bump the Kafka version to 3.6.2, and resolve the duplicate rebalance listener invocation. |
Raised #765. I think it would make sense to merge that one first, I can then rebase this PR, which should yield a clean test run. |
/sem-approve |
This PR includes the changes made by @ondryaso in #746 to resolve the failing
checkAutoCommitIsDisabled
forkafka-clients
>= v3.7.0 (#721).It further includes the changes requested by @rkolesnev in his review of #746.
Checklist