-
Notifications
You must be signed in to change notification settings - Fork 958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segment with heavy deletes not picked for merge in TieredMergePolicy #13226
Comments
__ [2024-03-20T15:46:36,015][TRACE][o.e.i.e.E.MP ]: Lucene Merge Thread #403832] MP: maybe=_1wtuc(8.7.0):C29948777/29948777:[diagnostics={os=Linux, java.version=11.0.17, os.arch=amd64, java.runtime.version=11.0.17+9-LTS, source=merge, ... :softDel=12100433 :id=i9yc9l5c6qvt26u9srmz8umo score=2.220052984489907 skew=0.713 nonDelRatio=1.000 tooLarge=false size=7083.170 MB From the log above, nonDelRatio is calculated as The value for It is likely that for this segment, even though we have a high no. of deletes, ... As a side note, is the log line above truncated? Because going by |
For the segment |
Description
Description
We have a cluster, running on Lucene v8.7.0 and configured with
TieredMergePolicy
. We are seeing a peculiar behavior where segments with heavy deletes are not getting picked as part of background merge operation and also, on invoking force merge expunge delete.As seen in below segment info, all the segments are close to
maxMergedSegmentBytes
5GB value and thesegDelPct
is ~99.9%, which is significantly higher than the threshold value of 20%, defined indeletesPctAllowed
.reclaim_deletes_weight
to ridiculously high number50
but the segment was still getting skipped with score of~2.22
and skew value0.713
.max_merged_segment
. Decreasing the value to 3GB resulted in segment_1pa38
getting picked for merge, but the deletes were not expunged post the merge finish.Version and environment details
No response
The text was updated successfully, but these errors were encountered: