-
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
rdkafka crashes when topic is too long (255 characters) sometimes #529
Comments
Reproduced, trying to work out what's going on. There are also some exceptions in the zk log: kafka.topics.sh --describe output: kafkacat -L output: Producing from kafkacat seems to hang, but enabling 'msg' debug shows that the produce request fails and is retried: Producing with kafka-console-producer.sh does not give any errors, but the message is not delivered. |
The crash is clearly a librdkafka bug though. |
@edenhill to double check, I have created with the CLI and it works fine, see the output below:
I have also verified with other longer paths. |
Seems like the broker doesn't like topics of 254 chars or more:
|
The broker state bug only happens when these >=254 topics are created with kafka-topics.sh --create, not by topic auto creation. |
Created upstream issue: https://issues.apache.org/jira/browse/KAFKA-3219 |
This is a 0.9.0 broker bug which lead to some problems in librdkafka, so while this test will still fail on broker 0.9.0 the crash in librdkafka will be caught.
Crash is fixed, please verify on your end too. |
We're using rdkafka for (legacy) consuming data from Kafka. We sometimes run into this trace when we are testing against a long/random topic:
(gdb) where
#0 0x00007ffc3d007925 in raise () from /lib64/libc.so.6
#1 0x00007ffc3d009105 in abort () from /lib64/libc.so.6
#2 0x00007ffc1c4c9193 in rd_kafka_crash (file=Unhandled dwarf expression opcode 0xf3
) at rdkafka.c:2096
#3 0x00007ffc1c501cd3 in rd_kafka_toppar_remove (rktp=0x7ffb503161d0) at rdkafka_partition.c:165
#4 0x00007ffc1c501cf2 in rd_kafka_toppar_destroy_final (rktp=0x7ffb503161d0) at rdkafka_partition.c:183
#5 0x00007ffc1c4e9e7c in rd_kafka_op_destroy (rko=0x7ffb503a99a0) at rdkafka_op.c:107
#6 0x00007ffc1c4f15ce in rd_kafka_toppar_handle_Offset (rkb=Unhandled dwarf expression opcode 0xf3
) at rdkafka_request.c:245
#7 0x00007ffc1c4e5c21 in rd_kafka_buf_callback (rkb=0x7ffb500ea1c0, err=RD_KAFKA_RESP_ERR_NO_ERROR, response=0x7ffb50060ff0, request=0x7ffb503a7d00) at rdkafka_buf.c:472
#8 0x00007ffc1c4d5973 in rd_kafka_req_response (rkb=0x7ffb500ea1c0) at rdkafka_broker.c:913
#9 rd_kafka_recv (rkb=0x7ffb500ea1c0) at rdkafka_broker.c:1084
#10 0x00007ffc1c4e3940 in rd_kafka_transport_io_event (rktrans=0x7ffb50103400, events=1) at rdkafka_transport.c:1027
#11 0x00007ffc1c4d8a50 in rd_kafka_broker_serve (rkb=0x7ffb500ea1c0, timeout_ms=Unhandled dwarf expression opcode 0xf3
) at rdkafka_broker.c:2142
#12 0x00007ffc1c4d9679 in rd_kafka_broker_consumer_serve (arg=0x7ffb500ea1c0) at rdkafka_broker.c:3258
#13 rd_kafka_broker_thread_main (arg=0x7ffb500ea1c0) at rdkafka_broker.c:3366
#14 0x00007ffc1c50a797 in _thrd_wrapper_function (aArg=Unhandled dwarf expression opcode 0xf3
) at tinycthread.c:611
#15 0x00007ffc3cbbb9d1 in start_thread () from /lib64/libpthread.so.0
#16 0x00007ffc3d0bdb5d in clone () from /lib64/libc.so.6
The topic name is: "s_bwdMQqvcnnOyypsNaikzSyWIrGxjAsj_lvwhdzLGDppr_wQYBJEfxRUkzVbVbTq_DbB_uDNO_nbTqJfwSUAgREeIaeawU_JbYaPgaFimHBJHwXoxWnfYYxYRhUEXuuiUKVU__omqjamNqvovvsaLhOTsXhTsYfodeKOwUsXLWNznWVHxuzIWDNukjfIemmkvfVUbAtI_mMvqFNuMWGniKdfMxUMzzsPHrZEHAqeeQYNNcQbxxMpQwxKHw_Bjo"
The text was updated successfully, but these errors were encountered: