Skip to content

The tracking visitor lets go of the indexes it opened - #1338

Merged
noha merged 1 commit into
mainfrom
the-check-lets-go-of-the-indexes-it-opened
Oct 10, 2026
Merged

noha merged 1 commit into
mainfrom
the-check-lets-go-of-the-indexes-it-opened

Conversation

@noha

@noha noha commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

The index manager keeps every index it is asked for open, file and all. SoilTrackingVisitor>>processIndexId:segment: asked it for each index of the database and never gave one back, so a check held every index file open at once. 62398e23 has 3319 indexes against the 1024 files the scheduler may hold open, and the check ended on the next index it opened with nothing but the path of that file as its error.

An index the walk opened is now removed from its manager (and closed) once it has been read, as SoilBackupVisitor>>copyIndexAt:segment: already does. One that was open before the walk stays open.

The index manager keeps every index it is asked for open, file and all.
SoilTrackingVisitor>>processIndexId:segment: asked it for each index of the
database and never gave one back, so a check held every index file open at
once. 62398e23 has 3319 indexes against the 1024 files the scheduler may hold
open, and the check ended on the next index it opened with nothing but the
path of that file as its error.

An index the walk opened is now removed from its manager (and closed) once it
has been read, as SoilBackupVisitor>>copyIndexAt:segment: already does. One
that was open before the walk stays open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noha
noha merged commit a162e3a into main Oct 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant