[ https://issues.apache.org/jira/browse/KAFKA-1111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16888789#comment-16888789 ]
Sönke Liebau commented on KAFKA-1111: ------------------------------------- I've not tested this, but there has been some work around TopicMetadataRequests creating topics. Most notably KAFKA-5291 which is at least related to this, but certainly doesn't fix it. Looking at the date on this though, is this still an issue or can we close this? > Broker prematurely accepts TopicMetadataRequests on startup > ----------------------------------------------------------- > > Key: KAFKA-1111 > URL: https://issues.apache.org/jira/browse/KAFKA-1111 > Project: Kafka > Issue Type: Bug > Reporter: Jason Rosenberg > Assignee: Neha Narkhede > Priority: Major > > I have an issue where on startup, the broker starts accepting > TopicMetadataRequests before it has had metadata sync'd from the controller. > This results in a bunch of log entries that look like this: > 013-11-01 03:26:01,577 INFO [kafka-request-handler-0] admin.AdminUtils$ - > Topic creation { "partitions":{ "0":[ 9, 10 ] }, "version":1 } > 2013-11-01 03:26:07,767 INFO [kafka-request-handler-1] admin.AdminUtils$ - > Topic creation { "partitions":{ "0":[ 9, 11 ] }, "version":1 } > 2013-11-01 03:26:07,823 INFO [kafka-request-handler-1] admin.AdminUtils$ - > Topic creation { "partitions":{ "0":[ 10, 11 ] }, "version":1 } > 2013-11-01 03:26:11,183 INFO [kafka-request-handler-2] admin.AdminUtils$ - > Topic creation { "partitions":{ "0":[ 10, 11 ] }, "version":1 } > From an email thread, Neha remarks: > Before a broker receives the first > LeaderAndIsrRequest/UpdateMetadataRequest, it is technically not ready to > start serving any request. But it still ends up serving > TopicMetadataRequest which can re-create topics accidentally. It shouldn't > succeed, but this is still a problem. -- This message was sent by Atlassian JIRA (v7.6.14#76016)