Repository navigation
Commit 7b4eb4a
fix(pipeline): route a first index as no_existing_db, not invalid_existing_db
The route probe opened whatever resolve_db_path returned, which inside
the staged run is the run's own stage. On a first index nothing was
copied into it, so the probe opened a 0-byte mkstemp placeholder, failed
its integrity check, and warned "pipeline.route path=full
reason=invalid_existing_db" -- on every first index of every project.
Read back after an OOM kill it looked like a corrupted database and a
daily "corrupt -> full rebuild -> OOM" loop (DeusData#1864); the loop is "no
database -> full -> OOM", and the stale 0-byte stage never influenced
the next run at all (each run mints a fresh name).
cbm_pipeline_run now records whether the destination existed and was
copied into the stage, and the route decision returns full early with
reason=no_existing_db (or existing_db_backup_failed, after the
backup_failed_full_rebuild warning) without probing a placeholder.
"invalid_existing_db" stays reserved for a real copy that fails its
integrity check.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>1 parent b6458f9 commit 7b4eb4a
2 files changed
Lines changed: 82 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
199 | 208 | | |
200 | 209 | | |
201 | 210 | | |
| |||
1403 | 1412 | | |
1404 | 1413 | | |
1405 | 1414 | | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
1406 | 1425 | | |
1407 | 1426 | | |
1408 | 1427 | | |
| |||
2956 | 2975 | | |
2957 | 2976 | | |
2958 | 2977 | | |
| 2978 | + | |
| 2979 | + | |
2959 | 2980 | | |
2960 | 2981 | | |
2961 | 2982 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3707 | 3707 | | |
3708 | 3708 | | |
3709 | 3709 | | |
| 3710 | + | |
| 3711 | + | |
| 3712 | + | |
| 3713 | + | |
| 3714 | + | |
| 3715 | + | |
| 3716 | + | |
| 3717 | + | |
| 3718 | + | |
| 3719 | + | |
| 3720 | + | |
| 3721 | + | |
| 3722 | + | |
| 3723 | + | |
| 3724 | + | |
| 3725 | + | |
| 3726 | + | |
| 3727 | + | |
| 3728 | + | |
| 3729 | + | |
| 3730 | + | |
| 3731 | + | |
| 3732 | + | |
| 3733 | + | |
| 3734 | + | |
| 3735 | + | |
| 3736 | + | |
| 3737 | + | |
| 3738 | + | |
| 3739 | + | |
| 3740 | + | |
| 3741 | + | |
| 3742 | + | |
| 3743 | + | |
| 3744 | + | |
| 3745 | + | |
| 3746 | + | |
| 3747 | + | |
| 3748 | + | |
| 3749 | + | |
| 3750 | + | |
| 3751 | + | |
| 3752 | + | |
| 3753 | + | |
| 3754 | + | |
| 3755 | + | |
| 3756 | + | |
| 3757 | + | |
| 3758 | + | |
| 3759 | + | |
| 3760 | + | |
| 3761 | + | |
| 3762 | + | |
| 3763 | + | |
| 3764 | + | |
| 3765 | + | |
| 3766 | + | |
| 3767 | + | |
| 3768 | + | |
| 3769 | + | |
3710 | 3770 | | |
3711 | 3771 | | |
3712 | 3772 | | |
| |||
14413 | 14473 | | |
14414 | 14474 | | |
14415 | 14475 | | |
| 14476 | + | |
14416 | 14477 | | |
14417 | 14478 | | |
14418 | 14479 | | |
| |||
0 commit comments