forked from karafka/rdkafka-ruby
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support ability to release patches (#110)
* Support ability to release patches * improve docs
- Loading branch information
Showing
4 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This patch is released under the 2-clause BSD license, same as librdkafka | ||
# Fixes: https://github.com/confluentinc/librdkafka/issues/4783 | ||
# | ||
--- librdkafka_2.5.0/src/rdkafka_sticky_assignor.c 2024-07-08 09:47:43.000000000 +0200 | ||
+++ librdkafka_2.5.0/src/rdkafka_sticky_assignor.c 2024-07-30 09:44:38.529759640 +0200 | ||
@@ -769,7 +769,7 @@ | ||
const rd_kafka_topic_partition_list_t *partitions; | ||
const char *consumer; | ||
const rd_map_elem_t *elem; | ||
- int i; | ||
+ int i, j; | ||
|
||
/* The assignment is balanced if minimum and maximum numbers of | ||
* partitions assigned to consumers differ by at most one. */ | ||
@@ -836,9 +836,9 @@ | ||
|
||
/* Otherwise make sure it can't get any more partitions */ | ||
|
||
- for (i = 0; i < potentialTopicPartitions->cnt; i++) { | ||
+ for (j = 0; j < potentialTopicPartitions->cnt; j++) { | ||
const rd_kafka_topic_partition_t *partition = | ||
- &potentialTopicPartitions->elems[i]; | ||
+ &potentialTopicPartitions->elems[j]; | ||
const char *otherConsumer; | ||
int otherConsumerPartitionCount; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
module Rdkafka | ||
VERSION = "0.17.0" | ||
VERSION = "0.17.1" | ||
LIBRDKAFKA_VERSION = "2.5.0" | ||
LIBRDKAFKA_SOURCE_SHA256 = "3dc62de731fd516dfb1032861d9a580d4d0b5b0856beb0f185d06df8e6c26259" | ||
end |