Skip to content

Make segment manager warning debug#29

Open
Manu Goyal (manugoyal) wants to merge 1 commit into
0.22.0-tweaksfrom
manu/0.22.0-tweaks-debug-log
Open

Make segment manager warning debug#29
Manu Goyal (manugoyal) wants to merge 1 commit into
0.22.0-tweaksfrom
manu/0.22.0-tweaks-debug-log

Conversation

@manugoyal
Copy link
Copy Markdown

According to some AI exploration, this message starts appearing when we mix compaction and merging work:

What’s happening is likely Tantivy background merging. That setting makes the compact WAL writer run Tantivy’s own background merge policy. During compaction we also keep committing WAL batches that delete/re-add rows. Tantivy can start a merge for segments A+B, then a later commit/delete pass updates the in-memory SegmentManager and one of those segments is no longer present when the merge finishes. So end_merge() logs couldn't find segment in SegmentManager. Tantivy’s own error text says this case is “not necessarily a bug”; it’s a stale merge result.

So we demote the message to debug to reduce spam.

According to some AI exploration, this message starts appearing when we
mix compaction and merging work:

What’s happening is likely Tantivy background merging. That setting
makes the compact WAL writer run Tantivy’s own background merge policy.
During compaction we also keep committing WAL batches that delete/re-add
rows. Tantivy can start a merge for segments A+B, then a later
commit/delete pass updates the in-memory SegmentManager and one of those
segments is no longer present when the merge finishes. So end_merge()
logs couldn't find segment in SegmentManager. Tantivy’s own error text
says this case is “not necessarily a bug”; it’s a stale merge result.

So we demote the message to debug to reduce spam.
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