Skip to content

Commit

Permalink
tools: disable broken controller command decode
Browse files Browse the repository at this point in the history
This needs fixing, but better to comment it out and have
the rest of the command work.
  • Loading branch information
jcsp committed Dec 2, 2022
1 parent 45afa73 commit 3f18cd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/offline_log_viewer/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def decode_topic_command_serde(k_rdr: Reader, rdr: Reader):
cmd['type'] = rdr.read_int8()
if cmd['type'] == 0:
cmd['type_string'] = 'create_topic'
cmd |= read_topic_assignment_serde(rdr)
# FIXME: this fails to read messages written on tip of dev ead54dda
#cmd |= read_topic_assignment_serde(rdr)
elif cmd['type'] == 1:
cmd['type_string'] = 'delete_topic'
cmd['namespace'] = rdr.read_string()
Expand Down Expand Up @@ -577,6 +578,7 @@ def decode_node_management_command(k_rdr: Reader, rdr: Reader):
}
return cmd


def decode_cluster_bootstrap_command(record):
def decode_user_and_credential(r):
user_cred = {}
Expand Down Expand Up @@ -604,6 +606,7 @@ def decode_user_and_credential(r):

return cmd


def decode_adl_or_serde(k_rdr: Reader, rdr: Reader, adl_fn, serde_fn):
either_adl_or_serde = rdr.peek_int8()
assert either_adl_or_serde >= -1, "unsupported serialization format"
Expand Down

0 comments on commit 3f18cd5

Please sign in to comment.