Skip to content

Commit

Permalink
rxidle and txidle were stats emitted as unsigned 64, now signed (#3519)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhill committed Aug 26, 2021
1 parent 4220242 commit 6a1595f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ librdkafka v1.8.0 is a security release:
is set to 0 - which disables ticket refreshes (by @mpekalski, #3431).
* Rename internal crc32c() symbol to rd_crc32c() to avoid conflict with
other static libraries (#3421).
* `txidle` and `rxidle` in the statistics object was emitted as 18446744073709551615 when no idle was known. -1 is now emitted instead. (#3519)


### Consumer fixes
Expand Down
4 changes: 2 additions & 2 deletions src/rdkafka.c
Original file line number Diff line number Diff line change
Expand Up @@ -1703,14 +1703,14 @@ static void rd_kafka_stats_emit_all (rd_kafka_t *rk) {
"\"txbytes\":%"PRIu64", "
"\"txerrs\":%"PRIu64", "
"\"txretries\":%"PRIu64", "
"\"txidle\":%"PRIu64", "
"\"txidle\":%"PRId64", "
"\"req_timeouts\":%"PRIu64", "
"\"rx\":%"PRIu64", "
"\"rxbytes\":%"PRIu64", "
"\"rxerrs\":%"PRIu64", "
"\"rxcorriderrs\":%"PRIu64", "
"\"rxpartial\":%"PRIu64", "
"\"rxidle\":%"PRIu64", "
"\"rxidle\":%"PRId64", "
"\"zbuf_grow\":%"PRIu64", "
"\"buf_grow\":%"PRIu64", "
"\"wakeups\":%"PRIu64", "
Expand Down

0 comments on commit 6a1595f

Please sign in to comment.