-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on invalid partition in Metadata #132
Comments
Can you try the following commands in gdb:
|
(gdb) frame 3 can not get any more info |
(gdb) frame 3 |
which version are you on? (git revision) |
message as follow is hellpful for this issues? (gdb) up |
|
kafka 0.8.0 |
frame 4 |
Is this crash reproducible? |
yes,i write to 2 topic,topic_1 is ok ,other topic |
can you reproduce this with debug = "topic,metadata" enabled? |
the core but in kafka the info can not fixed. |
I think you should print |
p mdt->partitions[7] kafka info: the info is ok |
Very strange, please do this:
|
partition_cnt is partition size? |
(gdb) p mdt->partition_cnt |
Yes, number of partitions
|
The partitions are not consecutive, havent seen this before. If you have rdkafka_example available (in librdkafka/examples directory), please do this too: thanks |
my partition nums is 16,why rdkafka just only gain 8? |
Can you provide the output of the two above commands? |
Oh, and run the rdkafka_example .. command for each broker you have. I think one of the brokers is reporting a corrupted partition set |
./kafka-list-topic.sh --zookeeper 10.135.3.34 --topic RealStatis_test ./rdkafka_example -b "10.135.3.34:9092,10.135.35.227:9092" -L -t RealStatis_test |
i run the cmd 'kafka-reassign-partitions.sh' |
so strange;after i run kafka reassign ;the svr is ok. |
I think one of the brokers were out of sync, the reassign tool fixed it.
|
If you have any more information from this problem (broker logs or similar) then please post them to this issue. Thanks. |
core info as follow:
(gdb) bt
#0 0x00007f4440f93885 in raise () from /lib64/libc.so.6
#1 0x00007f4440f95065 in abort () from /lib64/libc.so.6
#2 0x00000000004759bd in rd_kafka_crash (file=, line=, function=,
#3 0x000000000048601d in rd_kafka_topic_leader_update (rkb=0x7f440c005c30, mdt=0x7f436400179d) at rdkafka_topic.c:642
#4 rd_kafka_topic_metadata_update (rkb=0x7f440c005c30, mdt=0x7f436400179d) at rdkafka_topic.c:1001
#5 0x000000000047cb10 in rd_kafka_metadata_handle (rkb=0x7f440c005c30, err=0, reply=0x7f4364000940, request=0x7f4364000d20,
#6 rd_kafka_broker_metadata_reply (rkb=0x7f440c005c30, err=0, reply=0x7f4364000940, request=0x7f4364000d20,
#7 0x0000000000480477 in rd_kafka_req_response (rkb=0x7f440c005c30) at rdkafka_broker.c:1265
#8 rd_kafka_recv (rkb=0x7f440c005c30) at rdkafka_broker.c:1457
#9 0x0000000000480a20 in rd_kafka_broker_io_serve (rkb=0x7f440c005c30) at rdkafka_broker.c:2351
#10 0x0000000000481e2a in rd_kafka_broker_ua_idle (arg=) at rdkafka_broker.c:2370
#11 rd_kafka_broker_thread_main (arg=) at rdkafka_broker.c:3904
#12 0x00007f4441ea47f1 in start_thread () from /lib64/libpthread.so.0
#13 0x00007f4441046ccd in clone () from /lib64/libc.so.6
The text was updated successfully, but these errors were encountered: