Skip to content

Commit

Permalink
tests/fq/generic/streaming/test_join: dump counters in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yumkam committed Oct 10, 2024
1 parent 870207c commit d0208d1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ydb/tests/fq/generic/streaming/test_join.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,15 @@ def test_streamlookup(
messages_ctr = Counter(map(freeze, map(json.loads, map(itemgetter(1), messages))))
assert read_data_ctr == messages_ctr

if DEBUG:
for node_index in kikimr.compute_plane.kikimr_cluster.nodes:
sensors = kikimr.compute_plane.get_sensors(node_index, "dq_tasks").find_sensors(labels={"operation": query_id}, key_label="sensor")
for k in sensors:
for prefix in ("GenericLookup", "StreamLookupTransform", "InputTransform"):
if k.startswith(prefix):
print(f'node[{node_index}].operation[{query_id}].{k} = {sensors[k]}', file=sys.stderr)
break

fq_client.abort_query(query_id)
fq_client.wait_query(query_id)

Expand Down

0 comments on commit d0208d1

Please sign in to comment.