Module checker

Module checker 

Source

Structsยง

Checker
Checker evaluates whether a transformed SQL still preserves the original failure.
PanicInfo ๐Ÿ”’
Information about a detected panic in component logs.

Functionsยง

bootstrap_recovery ๐Ÿ”’
Execute bootstrap recovery command to fully restart RisingWave. This is needed when critical components (compute/meta/compactor) panic.
check_component_panic ๐Ÿ”’
Check if any critical component (compute/meta/compactor) has panicked recently. Only checks logs modified within the given time window to avoid false positives.
get_log_dir ๐Ÿ”’
Get the default RisingWave log directory path.
is_frontend_error ๐Ÿ”’
Check if the error message indicates a frontend-only error (SQL syntax, type mismatch, etc.) These errors are typically safe and can be handled by auto-recovery.
reconnect_frontend ๐Ÿ”’
Reconnect to the frontend PostgreSQL interface.
run_query
Executes a single SQL query string and returns (is_ok, error_message_if_any)
search_panic_in_log ๐Ÿ”’
Search for panic patterns in a log file. Uses tail to read only the last N lines for efficiency.
wait_for_auto_recovery ๐Ÿ”’
Wait for frontend to auto-recover with a timeout. Returns Ok if recovery succeeds, Err if timeout expires.
wait_for_recovery
Wait until RW recovery finishes (rw_recovery_status() = 'RUNNING')