Skip to content

Commit 2950beb

Browse files
committed
Merge branch 'master' into deleterecords
2 parents 3ebe5a8 + b3bde5c commit 2950beb

File tree

7 files changed

+28
-13
lines changed

7 files changed

+28
-13
lines changed

.semaphore/semaphore.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ execution_time_limit:
88
global_job_config:
99
env_vars:
1010
- name: LIBRDKAFKA_VERSION
11-
value: v2.3.0
11+
value: v2.4.0
1212
prologue:
1313
commands:
1414
- checkout
@@ -136,7 +136,7 @@ blocks:
136136
value: x64
137137
prologue:
138138
commands:
139-
- docker login --username $DOCKERHUB_USER --password $DOCKERHUB_APIKEY
139+
- '[[ -z $DOCKERHUB_APIKEY ]] || docker login --username $DOCKERHUB_USER --password $DOCKERHUB_APIKEY'
140140
jobs:
141141
- name: Build
142142
commands:

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Confluent's Python client for Apache Kafka
22

3+
## v2.4.0
4+
5+
v2.4.0 is a feature release with the following features, fixes and enhancements:
6+
7+
- [KIP-848](https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol): Added KIP-848 based new consumer group rebalance protocol. The feature is an **Early Access**: not production ready yet. Please refer [detailed doc](https://github.com/confluentinc/librdkafka/blob/master/INTRODUCTION.md#next-generation-of-the-consumer-group-protocol-kip-848) for more information.
8+
- Fix segfault with describe_topics and flaky connection (@lpsinger, #1692)
9+
10+
confluent-kafka-python is based on librdkafka v2.4.0, see the
11+
[librdkafka release notes](https://github.com/confluentinc/librdkafka/releases/tag/v2.4.0)
12+
for a complete list of changes, enhancements, fixes and upgrade considerations.
13+
14+
315
## v2.3.0
416

517
v2.3.0 is a feature release with the following features, fixes and enhancements:

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# built documents.
3636
#
3737
# The short X.Y version.
38-
version = '2.3.0'
38+
version = '2.4.0'
3939
# The full version, including alpha/beta/rc tags.
4040
release = version
4141
######################################################################

examples/docker/Dockerfile.alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ FROM alpine:3.12
3030

3131
COPY . /usr/src/confluent-kafka-python
3232

33-
ENV LIBRDKAFKA_VERSION v2.3.0
33+
ENV LIBRDKAFKA_VERSION v2.4.0
3434
ENV KAFKACAT_VERSION master
3535

3636

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_install_requirements(path):
7575
setup(name='confluent-kafka',
7676
# Make sure to bump CFL_VERSION* in confluent_kafka/src/confluent_kafka.h
7777
# and version in docs/conf.py.
78-
version='2.3.0',
78+
version='2.4.0',
7979
description='Confluent\'s Python client for Apache Kafka',
8080
author='Confluent Inc',
8181
author_email='support@confluent.io',

src/confluent_kafka/src/confluent_kafka.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,10 @@ PyObject *c_Node_to_py(const rd_kafka_Node_t *c_node) {
16201620

16211621
cfl_PyDict_SetInt(kwargs, "id", rd_kafka_Node_id(c_node));
16221622
cfl_PyDict_SetInt(kwargs, "port", rd_kafka_Node_port(c_node));
1623-
cfl_PyDict_SetString(kwargs, "host", rd_kafka_Node_host(c_node));
1623+
if (rd_kafka_Node_host(c_node))
1624+
cfl_PyDict_SetString(kwargs, "host", rd_kafka_Node_host(c_node));
1625+
else
1626+
PyDict_SetItemString(kwargs, "host", Py_None);
16241627
if((rack = rd_kafka_Node_rack(c_node)))
16251628
cfl_PyDict_SetString(kwargs, "rack", rack);
16261629

src/confluent_kafka/src/confluent_kafka.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,28 +42,28 @@
4242
* 0xMMmmRRPP
4343
* MM=major, mm=minor, RR=revision, PP=patchlevel (not used)
4444
*/
45-
#define CFL_VERSION 0x02030000
46-
#define CFL_VERSION_STR "2.3.0"
45+
#define CFL_VERSION 0x02040000
46+
#define CFL_VERSION_STR "2.4.0"
4747

4848
/**
4949
* Minimum required librdkafka version. This is checked both during
5050
* build-time (just below) and runtime (see confluent_kafka.c).
5151
* Make sure to keep the MIN_RD_KAFKA_VERSION, MIN_VER_ERRSTR and #error
5252
* defines and strings in sync.
5353
*/
54-
#define MIN_RD_KAFKA_VERSION 0x020300ff
54+
#define MIN_RD_KAFKA_VERSION 0x020400ff
5555

5656
#ifdef __APPLE__
57-
#define MIN_VER_ERRSTR "confluent-kafka-python requires librdkafka v2.3.0 or later. Install the latest version of librdkafka from Homebrew by running `brew install librdkafka` or `brew upgrade librdkafka`"
57+
#define MIN_VER_ERRSTR "confluent-kafka-python requires librdkafka v2.4.0 or later. Install the latest version of librdkafka from Homebrew by running `brew install librdkafka` or `brew upgrade librdkafka`"
5858
#else
59-
#define MIN_VER_ERRSTR "confluent-kafka-python requires librdkafka v2.3.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
59+
#define MIN_VER_ERRSTR "confluent-kafka-python requires librdkafka v2.4.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
6060
#endif
6161

6262
#if RD_KAFKA_VERSION < MIN_RD_KAFKA_VERSION
6363
#ifdef __APPLE__
64-
#error "confluent-kafka-python requires librdkafka v2.3.0 or later. Install the latest version of librdkafka from Homebrew by running `brew install librdkafka` or `brew upgrade librdkafka`"
64+
#error "confluent-kafka-python requires librdkafka v2.4.0 or later. Install the latest version of librdkafka from Homebrew by running `brew install librdkafka` or `brew upgrade librdkafka`"
6565
#else
66-
#error "confluent-kafka-python requires librdkafka v2.3.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
66+
#error "confluent-kafka-python requires librdkafka v2.4.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
6767
#endif
6868
#endif
6969

0 commit comments

Comments
 (0)