Mail: 10k backfill stops after a slow local WAL checkpoint #1337

Open
opened 2026-10-07 07:05:39 +00:00 by kayg · 0 comments
Owner

Steps: Start the isolated real TLS Dovecot E2E with CALTERNAL_MAIL_SYNC_MESSAGES=10000 on a heavily shared local host, then wait for initial backfill.
Expected: A slow passive WAL checkpoint does not make the cache step fail; Mail can continue or report a storage error that can be retried.
Actual: One run returned Mail sync failed: The IMAP connection failed. Server diagnostics report step="cache" error_kind="storage" after a passive checkpoint took 22.768 s, then classify the account failure as transport. Host load after the run was 19.25 / 27.08 / 36.36. A preceding 10k run on the same build completed in 39.292 s, so this needs a controlled reproduction before assigning the root cause.
Evidence file: target/tmp/1329-mail-checkpoint-evidence.txt
Severity: minor (one synthetic run under high local host load; no data loss observed).

Steps: Start the isolated real TLS Dovecot E2E with `CALTERNAL_MAIL_SYNC_MESSAGES=10000` on a heavily shared local host, then wait for initial backfill. Expected: A slow passive WAL checkpoint does not make the cache step fail; Mail can continue or report a storage error that can be retried. Actual: One run returned `Mail sync failed: The IMAP connection failed.` Server diagnostics report `step="cache" error_kind="storage"` after a passive checkpoint took 22.768 s, then classify the account failure as `transport`. Host load after the run was 19.25 / 27.08 / 36.36. A preceding 10k run on the same build completed in 39.292 s, so this needs a controlled reproduction before assigning the root cause. Evidence file: target/tmp/1329-mail-checkpoint-evidence.txt Severity: minor (one synthetic run under high local host load; no data loss observed).
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal-v0#1337
No description provided.