PoAn Yang created KAFKA-21743:
---------------------------------

             Summary: 
TestMigration.test_finalize_blocked_until_brokers_reregister_in_kraft waits for 
a log message the controller never prints
                 Key: KAFKA-21743
                 URL: https://issues.apache.org/jira/browse/KAFKA-21743
             Project: Kafka
          Issue Type: Bug
            Reporter: PoAn Yang
            Assignee: PoAn Yang
             Fix For: 3.9.3


KAFKA-20960 added 
{{TestMigration.test_finalize_blocked_until_brokers_reregister_in_kraft}} to 
{{{}tests/kafkatest/tests/core/zookeeper_migration_test.py{}}}. The test 
restarts the KRaft controller with 
{{zookeeper.metadata.migration.enable=false}} while the brokers are still 
registered as ZK brokers. It then waits up to 60 seconds for this line in the 
controller log:
{noformat}
Cannot complete ZK migration because the following broker(s) are still 
registered as ZK brokers
{noformat}
The controller never logs it. The test was written against an earlier revision 
of [#23338|https://github.com/apache/kafka/pull/23338]. A later commit in the 
same PR reworded the message as suggested in [this review 
comment|https://github.com/apache/kafka/pull/23338#discussion_r3980375267]. 
That commit updated {{ActivationRecordsGenerator}} and 
{{ActivationRecordsGeneratorTest}} but not the system test, so the test fails 
on every run on the 3.9 branch:
{noformat}
TimeoutError: Controller did not log the expected 'Cannot complete ZK 
migration' warning
{noformat}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to