mrproliu commented on code in PR #684: URL: https://github.com/apache/skywalking-banyandb/pull/684#discussion_r2153336211
########## banyand/property/shard.go: ########## @@ -80,11 +80,12 @@ func (db *database) newShard(ctx context.Context, id common.ShardID, _ int64) (* location: location, } opts := inverted.StoreOpts{ - Path: location, - Logger: si.l, - Metrics: inverted.NewMetrics(db.omr.With(propertyScope.ConstLabels(meter.LabelPairs{"shard": sName}))), - BatchWaitSec: 0, - PrepareMergeCallback: si.prepareForMerge, + Path: location, + Logger: si.l, + Metrics: inverted.NewMetrics(db.omr.With(propertyScope.ConstLabels(meter.LabelPairs{"shard": sName}))), + BatchWaitSec: 0, + PrepareMergeCallback: si.prepareForMerge, + MinSegmentsForInMemoryMerge: 1, Review Comment: Yeah, it's just works for make the testing easy. If all the segments should be deleted in the single merging phase, we facing the same problem. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@skywalking.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org