Skip to content

Commit 46d1243

Browse files
authored
fix(analyze): remove checkpoint test hook and tighten error matching
1 parent b6af46a commit 46d1243

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

gitnexus/src/cli/analyze.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,9 @@ const RECOMMENDED_LBUG_CHECKPOINT_THRESHOLD = 64 * 1024 * 1024;
431431
// We only match checkpoint-rotation shapes:
432432
// - "<db>.wal -> <db>.wal.checkpoint" rename failures
433433
// - "<db>.wal.checkpoint" remove failures
434+
// Example matches:
435+
// "Runtime exception: IO exception: Error renaming file /x/lbug.wal to /x/lbug.wal.checkpoint. ErrorMessage: Permission denied"
436+
// "Runtime exception: IO exception: Error removing directory or file /x/lbug.wal.checkpoint. Error Message: Permission denied"
434437
// Matching is case-insensitive to remain robust across wrappers/platforms.
435438
const LBUG_CHECKPOINT_RENAME_RE =
436439
/^runtime exception: io exception:\s*error renaming file\s+.+?\.wal\s+to\s+.+?\.wal\.checkpoint(?:\.|\s|$)/i;

0 commit comments

Comments
 (0)