You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[opt](cloud) optimize load performance for inverted index when pack small files (#59011)
Related PR: #57770
Problem Summary:
When merging small files with inverted indexes, the segment close
operation was synchronously waiting for inverted index files to be
uploaded to S3. This blocking behavior significantly impacted the
memtable flush thread performance, causing bottlenecks in the data
loading pipeline.
Solution:
The solution introduces a two-phase close mechanism for inverted index
file writers:
1. **Asynchronous Close Phase**: During segment close, inverted index
files are closed asynchronously and the S3 upload task is submitted
immediately without waiting for completion.
2. **Wait Phase**: When the load channel closes, the system waits for
all pending S3 upload tasks to complete, ensuring data consistency.
0 commit comments