secor
secor copied to clipboard
Secor continuously fetching metadata from Kafka cluster after killing the seed Kafka broker
I have a Kafka cluster with two nodes. I supplied node A to Secor to be the seed broker. After killing node A, Secor keep fetching metadata from node B without doing any data persistence to S3.
2015-03-27 14:32:32,194 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Property request.timeout.ms is overridden to 30000
2015-03-27 14:32:32,194 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Fetching metadata from broker id:2,host:ip-10-0-21-156.ap-southeast-1.compute.internal,port:9092 with correlation id 2326 for 3 topic(s) Set(flight-fares, fares, test2)
2015-03-27 14:32:32,199 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Connected to ip-10-0-21-156.ap-southeast-1.compute.internal:9092 for producing
2015-03-27 14:32:32,202 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Disconnecting from ip-10-0-21-156.ap-southeast-1.compute.internal:9092
2015-03-27 14:32:32,203 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO [ConsumerFetcherManager-1427437182052] Added fetcher for partitions ArrayBuffer()
2015-03-27 14:32:32,410 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Verifying properties
2015-03-27 14:32:32,413 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Property client.id is overridden to secor_backup
2015-03-27 14:32:32,413 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Property metadata.broker.list is overridden to ip-10-0-21-156.ap-southeast-1.compute.internal:9092
2015-03-27 14:32:32,414 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Property request.timeout.ms is overridden to 30000
2015-03-27 14:32:32,414 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Fetching metadata from broker id:2,host:ip-10-0-21-156.ap-southeast-1.compute.internal,port:9092 with correlation id 2327 for 3 topic(s) Set(flight-fares, fares, test2)
2015-03-27 14:32:32,416 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Connected to ip-10-0-21-156.ap-southeast-1.compute.internal:9092 for producing
2015-03-27 14:32:32,418 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Disconnecting from ip-10-0-21-156.ap-southeast-1.compute.internal:9092
2015-03-27 14:32:32,420 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO [ConsumerFetcherManager-1427437182052] Added fetcher for partitions ArrayBuffer()
2015-03-27 14:32:32,624 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Verifying properties
2015-03-27 14:32:32,625 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Property client.id is overridden to secor_backup
2015-03-27 14:32:32,625 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Property metadata.broker.list is overridden to ip-10-0-21-156.ap-southeast-1.compute.internal:9092
2015-03-27 14:32:32,625 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Property request.timeout.ms is overridden to 30000
2015-03-27 14:32:32,626 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Fetching metadata from broker id:2,host:ip-10-0-21-156.ap-southeast-1.compute.internal,port:9092 with correlation id 2328 for 3 topic(s) Set(flight-fares, fares, test2)
2015-03-27 14:32:32,627 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Connected to ip-10-0-21-156.ap-southeast-1.compute.internal:9092 for producing
2015-03-27 14:32:32,630 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Disconnecting from ip-10-0-21-156.ap-southeast-1.compute.internal:9092
2015-03-27 14:32:32,631 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO [ConsumerFetcherManager-1427437182052] Added fetcher for partitions ArrayBuffer()
2015-03-27 14:32:32,835 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Verifying properties
2015-03-27 14:32:32,836 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Property client.id is overridden to secor_backup
2015-03-27 14:32:32,836 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Property metadata.broker.list is overridden to ip-10-0-21-156.ap-southeast-1.compute.internal:9092
2015-03-27 14:32:32,837 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Property request.timeout.ms is overridden to 30000
2015-03-27 14:32:32,837 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Fetching metadata from broker id:2,host:ip-10-0-21-156.ap-southeast-1.compute.internal,port:9092 with correlation id 2329 for 3 topic(s) Set(flight-fares, fares, test2)
2015-03-27 14:32:32,839 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Connected to ip-10-0-21-156.ap-southeast-1.compute.internal:9092 for producing
2015-03-27 14:32:32,842 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Disconnecting from ip-10-0-21-156.ap-southeast-1.compute.internal:9092
2015-03-27 14:32:32,843 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO [ConsumerFetcherManager-1427437182052] Added fetcher for partitions ArrayBuffer()
2015-03-27 14:32:33,050 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Verifying properties
2015-03-27 14:32:33,051 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Property client.id is overridden to secor_backup
2015-03-27 14:32:33,051 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Property metadata.broker.list is overridden to ip-10-0-21-156.ap-southeast-1.compute.internal:9092
2015-03-27 14:32:33,051 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Property request.timeout.ms is overridden to 30000
2015-03-27 14:32:33,052 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Fetching metadata from broker id:2,host:ip-10-0-21-156.ap-southeast-1.compute.internal,port:9092 with correlation id 2330 for 3 topic(s) Set(flight-fares, fares, test2)
2015-03-27 14:32:33,054 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Connected to ip-10-0-21-156.ap-southeast-1.compute.internal:9092 for producing
2015-03-27 14:32:33,056 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO Disconnecting from ip-10-0-21-156.ap-southeast-1.compute.internal:9092
2015-03-27 14:32:33,057 [secor_backup_secor-staging-a-1.bezurk.org_30798_12-leader-finder-thread] (kafka.utils.Logging$class:68) INFO [ConsumerFetcherManager-1427437182052] Added fetcher for partitions ArrayBuffer()
Is this a feature or a bug?
I solved this problem by increasing the replication factor of my topic (defined in secor.common.properties) to 2. So that the metadata and the message logs from node A are replicated in node B, hence the metadata can be fetched by Secor to elect node B as the new leader.
+1
what is the name of the property? Thanks