yihua opened a new pull request, #1094:
URL: https://github.com/apache/hudi-rs/pull/1094
## Description
closes #1090
A bulk insert (`append`) with the record index built one record index entry
per row on the calling thread, cloning the key, partition path and file id each
time. It then routed every key to its shard serially and encoded the same
location payload once per key.
Append now hands the metadata writer each written file's keys as one group
and moves them instead of cloning. The keys are routed to shards in parallel on
the blocking pool, and each location's payload is encoded once. Append's
prepared batches are also released once their files are written, rather than
held until the end of the write. The record index HFile content is
byte-identical to before, and the log block headers are the same.
Benchmark: to be added.
## How are the changes test-covered
- [ ] N/A
- [x] Automated tests (unit and/or integration tests)
- [ ] Manual tests
- [ ] Details are described below
A new test checks every shard's log blocks against the per-entry encoding,
for generic entries and for grouped inserts routed by one task and by several.
It compares the HFile bytes and the headers as a map, and includes keys written
to two files, so the test fails if the sort stops being stable. A second test
routes runs across several tasks directly, independent of the host's core
count. The existing bulk insert, record index and write integration tests pass.
--
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]