KAFKA-6054: Fix upgrade path from Kafka Streams v0.10.0#4779
KAFKA-6054: Fix upgrade path from Kafka Streams v0.10.0#4779mjsax merged 5 commits intoapache:trunkfrom
Conversation
|
This is the port of #4746 (
If we decide to cleanup tests in 1.0/1.1, those changes need to be added to this branch, too. System tests: https://jenkins.confluent.io/job/system-test-kafka-branch-builder/1605/ Note: we cannot add upgrade tests for 1.1 yet, as 1.1 is not released yet. I have a branch ready and will open PR after 1.1 is released to add those missing tests. This PR does not implement KIP-268 completely, but only port parameter |
f13fc13 to
41db9c6
Compare
|
retest this please |
There was a problem hiding this comment.
Just for my own education: why we want to only include example jars if it is not for upgrade tests?
There was a problem hiding this comment.
We don't need them for upgrade test -- it's just to reduce CLASSPATH to the minimum for this case.
There was a problem hiding this comment.
Hmm.. seems this cherry-picking not correct, as it is for trunk the upgrade section should include for 1.2.0 right?
There was a problem hiding this comment.
The title should still be Upgrading a 1.0.0 Kafka Streams Application?
There was a problem hiding this comment.
Actually I think the title was not consistent: previous the title of Upgrading a <XXX> version talks about how to upgrade from 's previous minor release to where here we are talking about upgrading from to 1.0.0.
How about rename the title to Upgrading to a 1.0.0 Kafka Streams Application, and use a sebsuction
for Upgrading from 0.11.0, and so on for the following sub sections.
There was a problem hiding this comment.
Yes, the "id" means upgrade to this version while the text means upgrade from this version. It's explained in the first bullet point below thought. I would prefer to do a separate PR if we want to rephrase -- this PR is already complex enough.
There was a problem hiding this comment.
Do we need to ignore this test as well?
bbejeck
left a comment
There was a problem hiding this comment.
Overall looks good, just a couple of minor comments/questions.
There was a problem hiding this comment.
references here to version 1.1.1 should these be 1.2.0?
There was a problem hiding this comment.
This version of StreamsUpgradeTest doesn't have the upgraded from print statement, was that intentional? The other version have it.
There was a problem hiding this comment.
This is intentional, because we now pass in upgrade.from via the propertiesFile and the prop file gets printed.
vvcephei
left a comment
There was a problem hiding this comment.
Just a couple of minor comments.
There was a problem hiding this comment.
Do we need "notable changes" for 1.2 as well?
There was a problem hiding this comment.
I guess we can add 1.1 now!
There was a problem hiding this comment.
we can also add 1.1 here.
There was a problem hiding this comment.
I actually think, this is the root cause of the issue... Scala 2.12 required JDK8...
There was a problem hiding this comment.
We cannot. Need to downgrade to 2.11 anyway. Also, we can only pick one Scala version as there is only one directory for the Kafka version. We would need to change a lot of stuff to encode the Scala version in the directory(structure) to support different version. Even if we want to do this, it would be a separate PR.
There was a problem hiding this comment.
I didn't quite follow this. If you're saying that switching to scala 2.12 caused the runtime error about class version, that sounds about right.
But does this mean that we cannot add Kafka 1.1.x?
There was a problem hiding this comment.
Sorry for the confusion -- my bad. We an add 1.1.x -- will update this PR after I merged the 1.1 PR and cherry-picked those latest changes.
cf05a96 to
4d8c7f6
Compare
Update upgrade docs Github comments John's review Guozhang's follow up
remove generics move config fix doc typos remove generics move config Consolidating system tests Addressed review comment Update test-dev version to 1.1.1-SNAPSHOT Change Scala Version Add comments to vagrant/base.sh and update Scala versions for Dockerfile
4d8c7f6 to
8e89c7a
Compare
|
Updated this PR and triggered system tests: https://jenkins.confluent.io/job/system-test-kafka-branch-builder/1660/ Note, this does only port the |
dguy
left a comment
There was a problem hiding this comment.
Just one super nit, otherwise LGTM
| public class StreamsUpgradeTest { | ||
|
|
||
| /** | ||
| * This test cannot be run executed, as long as Kafka 0.10.1.2 is not released |
There was a problem hiding this comment.
nit: "cannot be run" or "cannot be executed" same in other versions of this test
|
Rebasing broke the system tests. Pushed some fixed. Retriggered: https://jenkins.confluent.io/job/system-test-kafka-branch-builder/1664/ (passed) |
Reviewers: Guozhang Wang <guozhang@confluent.io>, Bill Bejeck <bill@confluent.io>, John Roesler <john@confluent.io>, Damian Guy <damian@confluent.io>
No description provided.