Skip to content

KAFKA-4916: test streams with brokers failing (for 0.10.2)#2793

Closed
enothereska wants to merge 6 commits intoapache:0.10.2from
enothereska:KAFKA-4916-0.10.2
Closed

KAFKA-4916: test streams with brokers failing (for 0.10.2)#2793
enothereska wants to merge 6 commits intoapache:0.10.2from
enothereska:KAFKA-4916-0.10.2

Conversation

@enothereska
Copy link
Copy Markdown
Contributor

No description provided.

@enothereska
Copy link
Copy Markdown
Contributor Author

0.10.2 version of #2719

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 3, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2628/
Test FAILed (JDK 8 and Scala 2.12).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 3, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2628/
Test FAILed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 3, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2632/
Test PASSed (JDK 8 and Scala 2.11).

@enothereska
Copy link
Copy Markdown
Contributor Author

Known Kafka failures.

@enothereska
Copy link
Copy Markdown
Contributor Author

retest this please

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 3, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2651/
Test FAILed (JDK 8 and Scala 2.12).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 3, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2651/
Test FAILed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 3, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2655/
Test FAILed (JDK 8 and Scala 2.11).

@enothereska
Copy link
Copy Markdown
Contributor Author

enothereska commented Apr 3, 2017

Jenkins seems down

@enothereska
Copy link
Copy Markdown
Contributor Author

retest this please

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 3, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2654/
Test FAILed (JDK 8 and Scala 2.12).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 3, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2654/
Test FAILed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 3, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2658/
Test FAILed (JDK 8 and Scala 2.11).

@enothereska
Copy link
Copy Markdown
Contributor Author

retest this please

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 3, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2662/
Test PASSed (JDK 8 and Scala 2.12).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 3, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2662/
Test PASSed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 4, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2666/
Test FAILed (JDK 8 and Scala 2.11).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 4, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2716/
Test PASSed (JDK 8 and Scala 2.12).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 4, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2716/
Test FAILed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 4, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2720/
Test PASSed (JDK 8 and Scala 2.11).

Copy link
Copy Markdown
Contributor

@ewencp ewencp left a comment

Choose a reason for hiding this comment

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

@enothereska There's a bunch of small stuff from other PRs that I can't easily judge whether they are safe in a backport. (The significant different diffstat was a dead giveaway, and differences in the licenses are almost certainly best resolved to ours when cherry-picking unless you were making changes to licenses).

We should either revert those changes or have someone conclude that they are safe to combine. And since some of them involve system tests, it might warrant running the tests before merging.

final Map<String, Integer> existingTopicNamesPartitions) {
final Map<InternalTopicConfig, Integer> topicsToBeCreated = new HashMap<>();
for (InternalTopicConfig topic: topicsPartitionsMap.keySet()) {
for (Map.Entry<InternalTopicConfig, Integer> entry : topicsPartitionsMap.entrySet()) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This appears to be unrelated to the original patch, it seems to be from findbugs cleanup

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch, thanks.

// only commit after all state has been flushed and there hasn't been an exception
if (firstException.get() == null) {
firstException.set(commitOffsets());
// TODO: currently commit failures will not be thrown to users
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This also seems unrelated. It's in another patch that's being backported anyway, but probably shouldn't have made it into a cherry-pick.

).to(stringSerde, longSerde, "tagg");

return new KafkaStreams(builder, props);
final KafkaStreams streamsClient = new KafkaStreams(builder, props);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also seems unrelated, this is from a patch for KAFKA-4885

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You have eagle eyes :) Good catch again.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In this case I actually want the new change since I rely on exception handlers to catch problems.

if (exception != null) {
exception.printStackTrace();
System.exit(-1);
System.exit(1);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks like half the change from KAFKA-4039?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Probably harmless but reverting back.

self.kafka = kafka
self.args = {'streams_class_name': streams_class_name,
'user_test_args': user_test_args}
self.log_level = "DEBUG"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

From KAFKA-4702?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it's a good time to turn on logging in 0.10.2 to help debug. So this is good.

self.start_node(node)

def wait(self, timeout_sec=360):
def wait(self, timeout_sec=1440):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

From KAFKA-4843?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah I consciously upped this to match trunk since the new test also requires it. So this is good.


def __init__(self, test_context):
super(StreamsSmokeTest, self).__init__(test_context, num_zk=1, num_brokers=2, topics={
super(StreamsSmokeTest, self).__init__(test_context, num_zk=1, num_brokers=3, topics={
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

From KAFKA-4716?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's actually needed for this PR since this PR changes the replication factor to 3 in SmokeTestClient.java. It just so happened that in trunk we had already done that change, so it appears as if it is part of KAFKA_4716, but it's part of this PR.

@ewencp
Copy link
Copy Markdown
Contributor

ewencp commented Apr 5, 2017

@enothereska Might be easier to do the cherry-pick cleanly now that it's been squashed to a single commit on trunk. It looks like it's just 3 relatively small conflicts -- only reason I didn't resolve and commit myself is that I wasn't sure if we also wanted/needed to run system tests against the cherry-picked version given the size of the change.

@enothereska
Copy link
Copy Markdown
Contributor Author

enothereska commented Apr 5, 2017

Thanks @ewencp I'll double check. Ran streams test and passed: https://jenkins.confluent.io/job/system-test-kafka-branch-builder-2/245/

@enothereska
Copy link
Copy Markdown
Contributor Author

@ewencp I'm getting on plane, don't commit until I ack since I haven't had a chance to look yet. Thanks.

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 5, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2745/
Test FAILed (JDK 8 and Scala 2.11).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 5, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2741/
Test PASSed (JDK 8 and Scala 2.12).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 5, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2741/
Test PASSed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 6, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2785/
Test PASSed (JDK 8 and Scala 2.11).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 6, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2781/
Test PASSed (JDK 8 and Scala 2.12).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 6, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2781/
Test PASSed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 6, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2787/
Test PASSed (JDK 8 and Scala 2.11).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 6, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2783/
Test PASSed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 6, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2783/
Test PASSed (JDK 8 and Scala 2.12).

@enothereska
Copy link
Copy Markdown
Contributor Author

@ewencp this is good to go now. I did a test last night https://jenkins.confluent.io/job/system-test-kafka-branch-builder-2/246/. I have another scheduled waiting on branch builder, but I think it's good to go.

Copy link
Copy Markdown
Contributor

@ewencp ewencp left a comment

Choose a reason for hiding this comment

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

LGTM

asfgit pushed a commit that referenced this pull request Apr 6, 2017
Author: Eno Thereska <eno@confluent.io>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #2793 from enothereska/KAFKA-4916-0.10.2
@enothereska enothereska closed this Apr 6, 2017
@enothereska enothereska deleted the KAFKA-4916-0.10.2 branch April 6, 2017 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants