Current section

113 Versions

Jump to

Compare versions

4 files changed
+6 additions
-6 deletions
  @@ -1,6 +1,6 @@
1 1 PROJECT = brod
2 2 PROJECT_DESCRIPTION = Kafka client library in Erlang
3 - PROJECT_VERSION = 3.3.3
3 + PROJECT_VERSION = 3.3.4
4 4
5 5 DEPS = supervisor3 kafka_protocol
6 6 TEST_DEPS = docopt jsone meck proper
  @@ -1,5 +1,5 @@
1 1 {<<"name">>,<<"brod">>}.
2 - {<<"version">>,<<"3.3.3">>}.
2 + {<<"version">>,<<"3.3.4">>}.
3 3 {<<"requirements">>,
4 4 #{<<"kafka_protocol">> => #{<<"app">> => <<"kafka_protocol">>,
5 5 <<"optional">> => false,
  @@ -1,6 +1,6 @@
1 1 {application,brod,
2 2 [{description,"Apache Kafka Erlang client library"},
3 - {vsn,"3.3.3"},
3 + {vsn,"3.3.4"},
4 4 {registered,[]},
5 5 {applications,[kernel,stdlib,ssl,kafka_protocol,supervisor3]},
6 6 {env,[]},
  @@ -916,12 +916,12 @@ get_committed_offsets(#state{ offset_commit_policy = commit_to_kafka_v2
916 916 Offset0 = kpro:find(offset, PartitionOffset),
917 917 Metadata = kpro:find(metadata, PartitionOffset),
918 918 EC = kpro:find(error_code, PartitionOffset),
919 - case EC =:= ?EC_UNKNOWN_TOPIC_OR_PARTITION of
919 + ?ESCALATE_EC(EC),
920 + %% Offset -1 in offset_fetch_response is an indicator of 'no-value'
921 + case EC =:= ?EC_NONE andalso Offset0 =:= -1 of
920 922 true ->
921 - %% EC_UNKNOWN_TOPIC_OR_PARTITION is kept for version 0
922 923 Acc;
923 924 false ->
924 - ?ESCALATE_EC(EC),
925 925 Offset = maybe_upgrade_from_roundrobin_v1(Offset0, Metadata),
926 926 [{{Topic, Partition}, Offset} | Acc]
927 927 end