Summary
After server crash, orphaned imports show "already running" and cannot be resumed. Breaks crash recovery.
Steps to Reproduce
- Start an import with slow query interval (
query_interval_ms: 15000)
- While import is running, kill the server (
pkill -9 influxdb3)
- Restart the server
- Check status - shows
overall_status: "running" but nothing is running
- Attempt to resume - receive error: "Import is already running"
Expected Behavior
After server restart, resume should either:
- Detect the import is not actually running and allow resume
- Automatically detect stale
in_progress state and restart from checkpoint (or beginning if no checkpoint)
Actual Behavior
Resume is blocked with "already running" error. Import is stuck forever.