You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
db/state: fix spurious accessor rebuild for post-merge subset files
After a merge, the old sub-range .ef files stay on disk while held open
by active readers. OpenFolder/scanDirtyFiles re-adds them to dirtyFiles.
BuildMissedAccessors then found these re-added items had no .efi accessor
(already deleted as part of merge cleanup) and rebuilt them, producing
orphaned .efi files at paths that dir.trackRemovedFiles had been told were
deleted, triggering repeated "Removed file unexpectedly exists" warnings.
Fix: skip items in fileItemsWithMissedAccessors that are proper subsets
of another item already in dirtyFiles — their accessor should not be
rebuilt because the superset file supersedes them.
Add ERIGON_AGG_TRACE_FILE_LIFE logging to observe when the condition
fires: Debug by default; set the env var to empty to escalate all to
Warn, or to a substring to filter by filename base.
Also add dbg.EnvStringLookup to distinguish "not set" from "set to
empty string".
Fixes#19797
0 commit comments