Skip to content

Commit d5201af

Browse files
committed
tests: Add statement logging consistency check in statement-logging.td
1 parent 75939df commit d5201af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/cluster/statement-logging/statement-logging.td

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,3 +323,9 @@ ROLLBACK
323323
> SELECT mseh.began_at, mslh.occurred_at
324324
FROM mz_internal.mz_statement_execution_history mseh JOIN mz_internal.mz_statement_lifecycle_history mslh ON (mseh.id = mslh.statement_id)
325325
WHERE mslh.event_type = 'execution-began' AND mseh.began_at != mslh.occurred_at;
326+
327+
# Check that all statements are marked as finished.
328+
> SELECT count(*)
329+
FROM mz_internal.mz_recent_activity_log
330+
WHERE (finished_at IS NULL OR finished_status IS NULL) AND sql NOT LIKE '%__FILTER-OUT-THIS-QUERY__%';
331+
0

0 commit comments

Comments
 (0)