MINOR: Partition is under reassignment when adding and removing#8364
MINOR: Partition is under reassignment when adding and removing#8364ijuma merged 5 commits intoapache:trunkfrom
Conversation
32d2047 to
98e7255
Compare
|
ok to test |
|
@ijuma, we got the following error. It doesn't look related to this change |
|
So it turns out that this was an actual bug. Could we add a unit test that fails without this change? |
There was a problem hiding this comment.
This test fails against trunk
kafka.admin.TopicCommandTest > testIsNotUnderReplicatedWhenAdding FAILED
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:87)
at org.junit.Assert.assertTrue(Assert.java:42)
at org.junit.Assert.assertFalse(Assert.java:65)
at org.junit.Assert.assertFalse(Assert.java:75)
at kafka.admin.TopicCommandTest.testIsNotUnderReplicatedWhenAdding(TopicCommandTest.scala:54)
1 test completed, 1 failed
@ijuma , Done.
|
|
ok to test |
|
Hmm, maybe we should add the new test suite in a separate PR to avoid the large diff (rename detection would then kick in). What do you think? |
A partition is under reassignment if the either the set of adding replicas or set removing replicas is non-empty. Fix the test assertion such that it prints stdout on failure.
2a21d44 to
f276d28
Compare
|
@ijuma PR ready. |
|
Ok to test |
|
retest this please |
ebc391a to
0030c75
Compare
0030c75 to
e4e2760
Compare
|
Thanks for the review @ijuma |
|
ok to test |
|
retest this please |
|
ok to test |
|
JDK 8 job failed due to infra issue, the other 2 passed. |
|
retest this please |
|
Unrelated failures for JDK 8:
|
…t-for-generated-requests * apache-github/trunk: (366 commits) MINOR: Improve producer test BufferPoolTest#testCloseNotifyWaiters. (apache#7982) MINOR: document how to escape json parameters to ducktape tests (apache#8546) KAFKA-9885; Evict last members of a group when the maximum allowed is reached (apache#8525) KAFKA-9866: Avoid election for topics where preferred leader is not in ISR (apache#8524) KAFKA-9839; Broker should accept control requests with newer broker epoch (apache#8509) KAKFA-9612: Add an option to kafka-configs.sh to add configs from a prop file (KIP-574) MINOR: Partition is under reassignment when adding and removing (apache#8364) MINOR: reduce allocations in log start and recovery checkpoints (apache#8467) MINOR: Remove unused foreign-key join class (apache#8547) HOTFIX: Fix broker bounce system tests (apache#8532) KAFKA-9704: Fix the issue z/OS won't let us resize file when mmap. (apache#8224) KAFKA-8639: Replace AddPartitionsToTxn with Automated Protocol (apache#8326) MINOR: equals() should compare all fields for generated classes (apache#8539) KAFKA-9844; Fix race condition which allows more than maximum number of members(apache#8454) KAFKA-9823: Remember the sent generation for the coordinator request (apache#8445) KAFKA-9883: Add better error message when REST API forwards a request and leader is not known (apache#8536) KAFKA-9907: Switch default build to Scala 2.13 (apache#8537) MINOR: Some html fixes in Streams DSL documentation (apache#8503) MINOR: Enable fatal warnings with scala 2.13 (apache#8429) KAFKA-9852: Change the max duration that calls to the buffer pool can block from 2000ms to 10ms to reduce overall test runtime (apache#8464) ...
A partition is under reassignment if the either the set of adding
replicas or set removing replicas is non-empty.
Fix the test assertion such that it prints stdout on failure.
Committer Checklist (excluded from commit message)