You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Neha Narkhede (JIRA)" <ji...@apache.org> on 2012/08/17 17:49:38 UTC
[jira] [Created] (KAFKA-467) Controller based leader election
failed ERROR messages in LazyInitProducerTest
Neha Narkhede created KAFKA-467:
-----------------------------------
Summary: Controller based leader election failed ERROR messages in LazyInitProducerTest
Key: KAFKA-467
URL: https://issues.apache.org/jira/browse/KAFKA-467
Project: Kafka
Issue Type: Bug
Components: core
Affects Versions: 0.8
Reporter: Neha Narkhede
Assignee: Yang Ye
[info] Test Starting: testMultiProduce(kafka.integration.LazyInitProducerTest)
[2012-08-17 08:46:45,165] ERROR Timing out after 500 ms since leader is not elected for topic test1 partition 0 (kafka.utils.TestUtils$:93)
[2012-08-17 08:46:45,668] ERROR Timing out after 500 ms since leader is not elected for topic test2 partition 0 (kafka.utils.TestUtils$:93)
[2012-08-17 08:46:46,171] ERROR Timing out after 500 ms since leader is not elected for topic test3 partition 0 (kafka.utils.TestUtils$:93)
[info] Test Passed: testMultiProduce(kafka.integration.LazyInitProducerTest)
[info] Test Starting: testMultiProduceResend(kafka.integration.LazyInitProducerTest)
[2012-08-17 08:46:49,028] ERROR Timing out after 1500 ms since leader is not elected for topic test1 partition 0 (kafka.utils.TestUtils$:93)
[2012-08-17 08:46:50,531] ERROR Timing out after 1500 ms since leader is not elected for topic test2 partition 0 (kafka.utils.TestUtils$:93)
[2012-08-17 08:46:52,034] ERROR Timing out after 1500 ms since leader is not elected for topic test3 partition 0 (kafka.utils.TestUtils$:93)
[info] Test Passed: testMultiProduceResend(kafka.integration.LazyInitProducerTest)
Leader election should not time out
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (KAFKA-467) Controller based leader election
failed ERROR messages in LazyInitProducerTest
Posted by "Jun Rao (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jun Rao resolved KAFKA-467.
---------------------------
Resolution: Fixed
Fix Version/s: 0.8
Thanks for the patch. Committed to 0.8.
> Controller based leader election failed ERROR messages in LazyInitProducerTest
> ------------------------------------------------------------------------------
>
> Key: KAFKA-467
> URL: https://issues.apache.org/jira/browse/KAFKA-467
> Project: Kafka
> Issue Type: Bug
> Components: core
> Affects Versions: 0.8
> Reporter: Neha Narkhede
> Assignee: Yang Ye
> Labels: bugs, replication-testing
> Fix For: 0.8
>
> Attachments: kafka_467.diff
>
>
> [info] Test Starting: testMultiProduce(kafka.integration.LazyInitProducerTest)
> [2012-08-17 08:46:45,165] ERROR Timing out after 500 ms since leader is not elected for topic test1 partition 0 (kafka.utils.TestUtils$:93)
> [2012-08-17 08:46:45,668] ERROR Timing out after 500 ms since leader is not elected for topic test2 partition 0 (kafka.utils.TestUtils$:93)
> [2012-08-17 08:46:46,171] ERROR Timing out after 500 ms since leader is not elected for topic test3 partition 0 (kafka.utils.TestUtils$:93)
> [info] Test Passed: testMultiProduce(kafka.integration.LazyInitProducerTest)
> [info] Test Starting: testMultiProduceResend(kafka.integration.LazyInitProducerTest)
> [2012-08-17 08:46:49,028] ERROR Timing out after 1500 ms since leader is not elected for topic test1 partition 0 (kafka.utils.TestUtils$:93)
> [2012-08-17 08:46:50,531] ERROR Timing out after 1500 ms since leader is not elected for topic test2 partition 0 (kafka.utils.TestUtils$:93)
> [2012-08-17 08:46:52,034] ERROR Timing out after 1500 ms since leader is not elected for topic test3 partition 0 (kafka.utils.TestUtils$:93)
> [info] Test Passed: testMultiProduceResend(kafka.integration.LazyInitProducerTest)
> Leader election should not time out
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (KAFKA-467) Controller based leader election
failed ERROR messages in LazyInitProducerTest
Posted by "Yang Ye (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yang Ye updated KAFKA-467:
--------------------------
Attachment: kafka_467.diff
Neha,
This exception:
[info] Test Starting: testMultiProduce(kafka.integration.LazyInitProducerTest)
[2012-08-17 08:46:45,165] ERROR Timing out after 500 ms since leader is not elected for topic test1 partition 0 (kafka.utils.TestUtils$:93)
is due to the line of code TestUtils.waitUntilLeaderIsElectedOrChanged()....
But this line of code is not needed here, because the topics are not created initially, they're created on the fly when the server receives produce requests to these topics. So they will definitely hit the timeout exception.
I've checked out svn version 1367821, which is before the controller code is checked in, the same exceptions are there.
The way to fix it is just to remove the waitUntil() lines.
> Controller based leader election failed ERROR messages in LazyInitProducerTest
> ------------------------------------------------------------------------------
>
> Key: KAFKA-467
> URL: https://issues.apache.org/jira/browse/KAFKA-467
> Project: Kafka
> Issue Type: Bug
> Components: core
> Affects Versions: 0.8
> Reporter: Neha Narkhede
> Assignee: Yang Ye
> Labels: bugs, replication-testing
> Attachments: kafka_467.diff
>
>
> [info] Test Starting: testMultiProduce(kafka.integration.LazyInitProducerTest)
> [2012-08-17 08:46:45,165] ERROR Timing out after 500 ms since leader is not elected for topic test1 partition 0 (kafka.utils.TestUtils$:93)
> [2012-08-17 08:46:45,668] ERROR Timing out after 500 ms since leader is not elected for topic test2 partition 0 (kafka.utils.TestUtils$:93)
> [2012-08-17 08:46:46,171] ERROR Timing out after 500 ms since leader is not elected for topic test3 partition 0 (kafka.utils.TestUtils$:93)
> [info] Test Passed: testMultiProduce(kafka.integration.LazyInitProducerTest)
> [info] Test Starting: testMultiProduceResend(kafka.integration.LazyInitProducerTest)
> [2012-08-17 08:46:49,028] ERROR Timing out after 1500 ms since leader is not elected for topic test1 partition 0 (kafka.utils.TestUtils$:93)
> [2012-08-17 08:46:50,531] ERROR Timing out after 1500 ms since leader is not elected for topic test2 partition 0 (kafka.utils.TestUtils$:93)
> [2012-08-17 08:46:52,034] ERROR Timing out after 1500 ms since leader is not elected for topic test3 partition 0 (kafka.utils.TestUtils$:93)
> [info] Test Passed: testMultiProduceResend(kafka.integration.LazyInitProducerTest)
> Leader election should not time out
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (KAFKA-467) Controller based leader election failed
ERROR messages in LazyInitProducerTest
Posted by "Jun Rao (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jun Rao closed KAFKA-467.
-------------------------
> Controller based leader election failed ERROR messages in LazyInitProducerTest
> ------------------------------------------------------------------------------
>
> Key: KAFKA-467
> URL: https://issues.apache.org/jira/browse/KAFKA-467
> Project: Kafka
> Issue Type: Bug
> Components: core
> Affects Versions: 0.8
> Reporter: Neha Narkhede
> Assignee: Yang Ye
> Labels: bugs, replication-testing
> Fix For: 0.8
>
> Attachments: kafka_467.diff
>
>
> [info] Test Starting: testMultiProduce(kafka.integration.LazyInitProducerTest)
> [2012-08-17 08:46:45,165] ERROR Timing out after 500 ms since leader is not elected for topic test1 partition 0 (kafka.utils.TestUtils$:93)
> [2012-08-17 08:46:45,668] ERROR Timing out after 500 ms since leader is not elected for topic test2 partition 0 (kafka.utils.TestUtils$:93)
> [2012-08-17 08:46:46,171] ERROR Timing out after 500 ms since leader is not elected for topic test3 partition 0 (kafka.utils.TestUtils$:93)
> [info] Test Passed: testMultiProduce(kafka.integration.LazyInitProducerTest)
> [info] Test Starting: testMultiProduceResend(kafka.integration.LazyInitProducerTest)
> [2012-08-17 08:46:49,028] ERROR Timing out after 1500 ms since leader is not elected for topic test1 partition 0 (kafka.utils.TestUtils$:93)
> [2012-08-17 08:46:50,531] ERROR Timing out after 1500 ms since leader is not elected for topic test2 partition 0 (kafka.utils.TestUtils$:93)
> [2012-08-17 08:46:52,034] ERROR Timing out after 1500 ms since leader is not elected for topic test3 partition 0 (kafka.utils.TestUtils$:93)
> [info] Test Passed: testMultiProduceResend(kafka.integration.LazyInitProducerTest)
> Leader election should not time out
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira