Skip to content

MINOR: Improve verification in flaky testPartitionReassignmentDuringDeleteTopic - #6460

Merged
rajinisivaram merged 1 commit into
apache:trunkfrom
apovzner:delete-topic-test
Mar 18, 2019
Merged

MINOR: Improve verification in flaky testPartitionReassignmentDuringDeleteTopic#6460
rajinisivaram merged 1 commit into
apache:trunkfrom
apovzner:delete-topic-test

Conversation

@apovzner

Copy link
Copy Markdown
Contributor

We saw one failure in testPartitionReassignmentDuringDeleteTopic unit test couple of months ago. The investigation so far did not find any real failure. However, the test checks whether controller.kafkaController.controllerContext.partitionsBeingReassigned contains partition being reassigned after verifying that reassignment znode does not exist anymore (via ReassignPartitionsCommand.checkIfPartitionReassignmentSucceeded). controller.kafkaController.controllerContext.partitionsBeingReassigned is updated after znode is deleted, so there is a very small chance that partitions still exists in partitionsBeingReassigned. This PR adds a waited check for partitionsBeingReassigned.

java.lang.AssertionError: Partition reassignment should fail
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertFalse(Assert.java:64)
	at kafka.admin.DeleteTopicTest.testPartitionReassignmentDuringDeleteTopic(DeleteTopicTest.scala:141)

Committer Checklist (excluded from commit message)

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

@rajinisivaram rajinisivaram left a comment

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.

@apovzner Thanks for the PR, LGTM

@rajinisivaram

Copy link
Copy Markdown
Contributor

Merging to trunk and 2.2

@rajinisivaram
rajinisivaram merged commit 5192956 into apache:trunk Mar 18, 2019
rajinisivaram pushed a commit that referenced this pull request Mar 18, 2019
…eleteTopic (#6460)

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>
@apovzner
apovzner deleted the delete-topic-test branch March 19, 2019 01:48
jarekr pushed a commit to confluentinc/kafka that referenced this pull request Apr 18, 2019
* apache/trunk:
  MINOR: Improve logging around index files (apache#6385)
  KAFKA-7858: Automatically generate JoinGroup request/response
  KAFKA-8121; Shutdown ZK client expiry handler earlier during close (apache#6462)
  MINOR: Improve verification in flaky testPartitionReassignmentDuringDeleteTopic (apache#6460)
pengxiaolong pushed a commit to pengxiaolong/kafka that referenced this pull request Jun 14, 2019
…eleteTopic (apache#6460)

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>
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.

2 participants