Skip to content

Commit 6843b45

Browse files
committed
feat(wip): support latest versions of kafka protocol
1 parent 45b7899 commit 6843b45

16 files changed

+12723
-4845
lines changed

.tool-versions

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
scala 3.7.2
2+
gradle 9.0.0
3+
erlang 27.2-3

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ GEN_CODE = src/kpro_schema.erl
1212
.PHONY: kafka-bnf
1313
kafka-bnf:
1414
@cd priv/kafka_protocol_bnf && gradle run
15-
@cat priv/kafka.bnf | grep "#.*ApiKey" | awk '{print "{"$$2" "$$3"}."}' | sed -r 's/([A-Z])/_\L\1/g' | sed 's/{_/{/' | sort -hk2 > priv/api-keys.eterm
15+
@python3 priv/process_api_keys.py
1616

1717
$(GEN_CODE): $(GEN_INPUT)
1818
@priv/kpro_gen.escript

priv/api-keys.eterm

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,33 @@
4141
{alter_partition_reassignments, 45}.
4242
{list_partition_reassignments, 46}.
4343
{offset_delete, 47}.
44+
{describe_client_quotas, 48}.
45+
{alter_client_quotas, 49}.
46+
{describe_user_scram_credentials, 50}.
47+
{alter_user_scram_credentials, 51}.
48+
{fetch_snapshot, 59}.
49+
{describe_cluster, 60}.
50+
{describe_producers, 61}.
51+
{unregister_broker, 64}.
52+
{describe_transactions, 65}.
53+
{list_transactions, 66}.
54+
{consumer_group_heartbeat, 68}.
55+
{consumer_group_describe, 69}.
56+
{controller_registration, 70}.
57+
{get_telemetry_subscriptions, 71}.
58+
{push_telemetry, 72}.
59+
{assign_replicas_to_dirs, 73}.
60+
{list_config_resources, 74}.
61+
{describe_topic_partitions, 75}.
62+
{share_group_heartbeat, 76}.
63+
{share_group_describe, 77}.
64+
{share_fetch, 78}.
65+
{share_acknowledge, 79}.
66+
{add_raft_voter, 80}.
67+
{remove_raft_voter, 81}.
68+
{update_raft_voter, 82}.
69+
{streams_group_heartbeat, 88}.
70+
{streams_group_describe, 89}.
71+
{describe_share_group_offsets, 90}.
72+
{alter_share_group_offsets, 91}.
73+
{delete_share_group_offsets, 92}.

0 commit comments

Comments
 (0)