Skip to content
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-9742: Fix StandbyTaskEOSIntegrationTest End offset #8329

Closed
wants to merge 1 commit into from

Conversation

abbccdda
Copy link
Contributor

The StandbyTaskEOSIntegrationTest was broken due to the incorrect offset setting in the checkpoint file enforced by 6cf27c9. The fix is to set the offset to a legitimate value even if the topic doesn't exist.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@vvcephei
Copy link
Contributor

test this please

@guozhangwang
Copy link
Contributor

LGTM.

@mjsax mjsax added streams tests Test fixes (including flaky tests) labels Mar 23, 2020
@@ -120,7 +120,7 @@ private KafkaStreams buildStreamWithDirtyStateDir(final String appId,
new StreamsConfig(props), new MockTime(), true);

new OffsetCheckpoint(new File(stateDirectory.directoryForTask(taskId), ".checkpoint"))
.write(Collections.singletonMap(new TopicPartition("unknown-topic", 0), 5L));
.write(Collections.singletonMap(new TopicPartition("unknown-topic", 0), 0L));
Copy link
Contributor

Choose a reason for hiding this comment

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

this offset is added deliberately so as to make task corrupted.

@chia7712
Copy link
Contributor

seems #8330 is going to fix this flaky.

@abbccdda abbccdda closed this Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
streams tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants