Skip to content

Commit

Permalink
tools[log_viewer]: support kafka_internal ns
Browse files Browse the repository at this point in the history
Some topics are in kafka_internal ns like
tx (transaction coordinator) and id_allocator.
  • Loading branch information
bharathv committed Jun 30, 2022
1 parent 7f0d681 commit a1cd943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/offline_log_viewer/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def print_controller(store):

def print_kafka(store, topic):
for ntp in store.ntps:
if ntp.nspace == "kafka":
if ntp.nspace.startswith("kafka"):
if topic and ntp.topic != topic:
continue

Expand All @@ -46,7 +46,7 @@ def print_kafka(store, topic):

def print_kafka_records(store, topic):
for ntp in store.ntps:
if ntp.nspace == "kafka":
if ntp.nspace.startswith("kafka"):
if topic and ntp.topic != topic:
continue

Expand Down

0 comments on commit a1cd943

Please sign in to comment.