github-actions[bot] commented on code in PR #70890: URL: https://github.com/apache/doris/pull/70890#discussion_r4665594948
########## contrib/clucene: ########## @@ -1 +1 @@ -Subproject commit f2864e07f08583b5cc948e87e82294fd0fd5de16 +Subproject commit bb3b6ef0c3216f2913efb3d5fae0604a6d365bfd Review Comment: [P2] Bound the new per-thread positional scratch buffer This gitlink introduces `PFORUtil.cpp::scratch()`'s grow-only `thread_local std::vector`. `encodePos()` sizes it from every occurrence in a postings block, rather than the 512-document limit: 512 tokenized rows containing 20,000 repetitions of `alpha` each reach the first flush with 10,220,000 positions, allocating at least 40,959,852 bytes. The old buffer was call-local; the new allocation survives writer destruction and compaction completion until the worker exits. Cloud compaction uses persistent pools, so each worker can retain its own large peak, with no Doris accounting or cache reclamation for this standard-vector storage. Keep oversized scratch scoped to the operation, or cap the TLS cache and account for its retained bytes. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
