Skip to content

Commit 5bb82e9

Browse files
committed
update librdkafka to 2.4.0
1 parent 608b459 commit 5bb82e9

File tree

4 files changed

+21
-23
lines changed

4 files changed

+21
-23
lines changed

Diff for: .gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "librdkafka"]
22
path = librdkafka
3-
url = https://github.com/edenhill/librdkafka.git
3+
url = https://github.com/confluentinc/librdkafka.git

Diff for: CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ if(STATIC_BUILD)
8888
add_library(librdkafka_static INTERFACE)
8989
add_dependencies(librdkafka_static librdkafka)
9090
ExternalProject_Get_Property(librdkafka INSTALL_DIR)
91-
target_include_directories(librdkafka_static INTERFACE ${INSTALL_DIR}/include)
91+
target_include_directories(librdkafka_static SYSTEM INTERFACE ${INSTALL_DIR}/include)
9292
target_link_libraries(librdkafka_static INTERFACE ${INSTALL_DIR}/lib/librdkafka.a)
9393

9494
set(RDKAFKA_LIBRARY ${RDKAFKA_LIBRARY} librdkafka_static)

Diff for: librdkafka

Submodule librdkafka updated 458 files

Diff for: patches/librdkafka-tarantool-security-47.patch

+18-20
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,30 @@
11
diff --git a/src/rdkafka_assignment.c b/src/rdkafka_assignment.c
2-
index 5f05683d..1db90ece 100644
2+
index 6d1f0191..ee4cea61 100644
33
--- a/src/rdkafka_assignment.c
44
+++ b/src/rdkafka_assignment.c
5-
@@ -276,19 +276,22 @@ static void rd_kafka_assignment_handle_OffsetFetch(rd_kafka_t *rk,
6-
if (err) {
7-
rd_kafka_dbg(rk, CGRP, "OFFSET",
8-
"Offset fetch error for %d partition(s): %s",
9-
- offsets->cnt, rd_kafka_err2str(err));
10-
+ offsets ? offsets->cnt : -1,
11-
+ rd_kafka_err2str(err));
12-
rd_kafka_consumer_err(
13-
rk->rk_consumer.q, rd_kafka_broker_id(rkb), err, 0, NULL,
14-
NULL, RD_KAFKA_OFFSET_INVALID,
15-
"Failed to fetch committed offsets for "
16-
"%d partition(s) in group \"%s\": %s",
17-
- offsets->cnt, rk->rk_group_id->str, rd_kafka_err2str(err));
18-
+ offsets ? offsets->cnt : -1, rk->rk_group_id->str,
19-
+ rd_kafka_err2str(err));
5+
@@ -315,21 +315,22 @@ static void rd_kafka_assignment_handle_OffsetFetch(rd_kafka_t *rk,
6+
rd_kafka_dbg(
7+
rk, CGRP, "OFFSET",
8+
"Offset fetch error for %d partition(s): %s",
9+
- offsets->cnt, rd_kafka_err2str(err));
10+
+ offsets ? offsets->cnt : -1, rd_kafka_err2str(err));
11+
rd_kafka_consumer_err(
12+
rk->rk_consumer.q, rd_kafka_broker_id(rkb), err, 0,
13+
NULL, NULL, RD_KAFKA_OFFSET_INVALID,
14+
"Failed to fetch committed offsets for "
15+
"%d partition(s) in group \"%s\": %s",
16+
- offsets->cnt, rk->rk_group_id->str,
17+
+ offsets ? offsets->cnt : -1, rk->rk_group_id->str,
18+
rd_kafka_err2str(err));
19+
}
2020
}
2121

2222
/* Apply the fetched offsets to the assignment */
2323
- rd_kafka_assignment_apply_offsets(rk, offsets, err);
2424
-
2525
- rd_kafka_topic_partition_list_destroy(offsets);
2626
+ if (offsets) {
27-
+ rd_kafka_assignment_apply_offsets(rk, offsets, err);
28-
+ rd_kafka_topic_partition_list_destroy(offsets);
27+
+ rd_kafka_assignment_apply_offsets(rk, offsets, err);
28+
+ rd_kafka_topic_partition_list_destroy(offsets);
2929
+ }
3030
}
31-
32-

0 commit comments

Comments
 (0)