Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We are using librdkafka C library.
The producer code is setting up the rd_kafka_conf_set_stats_cb() for receiving the stats and dumping them for debugging.
It is observed that few fields in partitions have default values -1001 (RD_KAFKA_OFFSET_INVALID)
Fields with default vaule of -1001 are eof_offset, query_offset, commited_offset, lo_offset, hi_offset, consumer_lag, stored_offset and consumer_lag having -1
However, other stats from the topics are incrementing and non negative.
Queries:
Sample log:
"partitions": {
"0": {
"partition": 0,
"leader": 1,
"desired": false,
"unknown": false,
"msgq_cnt": 0,
"msgq_bytes": 0,
"xmit_msgq_cnt": 0,
"xmit_msgq_bytes": 0,
"fetchq_cnt": 0,
"fetchq_size": 0,
"fetch_state": "none",
"query_offset": -1001,
"next_offset": 0,
"app_offset": -1001,
"stored_offset": -1001,
"commited_offset": -1001,
"committed_offset": -1001,
"eof_offset": -1001,
"lo_offset": -1001,
"hi_offset": -1001,
"consumer_lag": -1,
"txmsgs": 6701688,
"txbytes": 20214656430,
"rxmsgs": 0,
"rxbytes": 0,
"msgs": 6701688,
"rx_ver_drops": 0,
"msgs_inflight": 0,
"next_ack_seq": 0,
"next_err_seq": 0,
"acked_msgid": 0
},
Searched for similar discussions and issues, but all are related to consumer and suggests to call rebalance ( which is present in our consumer code).
Appreciate if the queries can be clarified.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions