kafka
kafka copied to clipboard
KAFKA-16437 - Upgrade to Jakarta and Jetty 12 (KIP-1032)
This commit implements the changes for KIP-1032. This updates Kafka to Jakarta specs, JavaEE 10 and Jetty 12. The changes here primarily effect Kafka Connect and MM2.
Todo/Notes:
- I bumped the connect modules to JDK 17 but I also had to bump a couple other things that had a dependency on conect. The tools project depends on connect so that had to be bumped, and streams depends on tools so that needed to be bumped. This means we may need to separate some things if we don't want to enforce JDK 17 on streams.
- There is an issue with a test in DedicatedMirrorIntegrationTest that I had to change for now that involves escaping characters and not quite sure what to do about it yet. The cause is the Servlet 6 spec changing what is allowed in the path. See: https://github.com/jetty/jetty.project/issues/11890
- I had to configure the idle timeout in Jetty requests to match our request timeout so tests didn't fail. This was needed to fix the
ConnectWorkerIntegrationTest#testPollTimeoutExpiry()
test
Testing is being done by just using the existing tests for Connect and MM2 which should be sufficient.
Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)