Skip to content

MINOR: Fix ReassignPartitionsClusterTest.testHwAfterPartitionReassignment test#4781

Merged
hachikuji merged 2 commits intoapache:trunkfrom
omkreddy:replica-branch
Mar 27, 2018
Merged

MINOR: Fix ReassignPartitionsClusterTest.testHwAfterPartitionReassignment test#4781
hachikuji merged 2 commits intoapache:trunkfrom
omkreddy:replica-branch

Conversation

@omkreddy
Copy link
Copy Markdown
Contributor

No description provided.

@omkreddy
Copy link
Copy Markdown
Contributor Author

@hachikuji @lindong28
Observed below test exception on local test runs

kafka.admin.ReassignPartitionsClusterTest.testHwAfterPartitionReassignment FAILURE
org.apache.kafka.common.errors.ReplicaNotAvailableException: Replica 100 is not available for partition my-topic-0

Pls take a look.

@lindong28
Copy link
Copy Markdown
Member

@omkreddy Thanks for the fix. @gitlw reported this issue as well yesterday. The fix LGTM.


assertEquals(100, newLeaderServer.replicaManager.getReplicaOrException(topicPartition).highWatermark.messageOffset)
servers.foreach(server => waitUntilTrue(() => server.replicaManager.getReplicaOrException(topicPartition).highWatermark.messageOffset == 100, ""))
val replicaServer = servers.find(_.config.brokerId == 102).get
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nits: how about newFollowerServer?

Copy link
Copy Markdown
Contributor

@hachikuji hachikuji left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for fixing this!

@hachikuji hachikuji merged commit 395c7e0 into apache:trunk Mar 27, 2018
hachikuji pushed a commit that referenced this pull request Mar 27, 2018
…ment test (#4781)

Reviewers: Dong Lin <lindong28@gmail.com>, Jason Gustafson <jason@confluent.io>
hachikuji pushed a commit that referenced this pull request Mar 27, 2018
…ment test (#4781)

Reviewers: Dong Lin <lindong28@gmail.com>, Jason Gustafson <jason@confluent.io>
ijuma added a commit to confluentinc/kafka that referenced this pull request Apr 25, 2018
* confluent/1.1: (60 commits)
  MINOR: Fix kafka-run-class for Java 10 (apache#4895)
  KAFKA-6772: Load credentials from ZK before accepting connections (apache#4867)
  KAFKA-6742: TopologyTestDriver error when dealing with stores from GlobalKTable
  MINOR: Mention that -1 disables retention by time (apache#4881)
  KAFKA-6790: Fix Streams processor node broken link (apache#4874)
  MINOR: Java 10 fixes so that the build passes (apache#4839)
  MINOR: Update Jackson to 2.9.5 (apache#4776)
  MINOR: Downgrade to Gradle 4.5.1 (apache#4791)
  MINOR: Java 9/10 fixes, gradle and minor deps update (apache#4725)
  KAFKA-6752: Enable unclean leader election metric (apache#4838)
  KAFKA-6054: Fix upgrade path from Kafka Streams v0.10.0 (apache#4773)
  KAFKA-6747 Check whether there is in-flight transaction before aborting transaction (apache#4826)
  KAFKA-6748: double check before scheduling a new task after the punctuate call (apache#4827)
  KAFKA-6739; Ignore headers when down-converting from V2 to V0/V1 (apache#4813)
  KAFKA-6728: Corrected the worker’s instantiation of the HeaderConverter
  KAFKA-6731: waitOnState should check the state to be the target start. (apache#4808)
  HOTFIX: Enforce a rebalance upon task migration (apache#4802)
  MINOR: Remove 1.2.0 changes from streams doc (apache#4784)
  MINOR: Update version numbers to 1.1.1-SNAPSHOT
  MINOR: Fix ReassignPartitionsClusterTest.testHwAfterPartitionReassignment test (apache#4781)
  ...
@omkreddy omkreddy deleted the replica-branch branch July 3, 2018 15:44
isolis pushed a commit to linkedin/kafka that referenced this pull request Sep 13, 2018
…ment test (apache#4781)

Reviewers: Dong Lin <lindong28@gmail.com>, Jason Gustafson <jason@confluent.io>
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