yihua opened a new pull request, #1096:
URL: https://github.com/apache/hudi-rs/pull/1096

   ## Description
   
   closes #1092
   
   Stacked on #1095, which should merge first; until then this PR also shows 
its commit.
   
   A point read that prunes with the record index rebuilt the valid metadata 
instant set for the lookup by listing the data timeline twice and the metadata 
timeline once, one after another, although the plan had already built that set 
for the same snapshot. It also asked storage for each touched shard's base file 
size, which the partition listing had already returned.
   
   The plan now passes its metadata snapshot's valid-instant set to the lookup, 
and the lookup opens each shard's base file at the listed size. The write 
path's lookups still read the timelines in storage. One difference: an instant 
of any action that is pending when the table is opened stays excluded from the 
lookup even if it completes before the lookup runs, matching the plan's own 
file listing. Before, only pending commit actions were excluded this way.
   
   Benchmark (local filesystem with 20 ms added to each storage request, one 
key read on a table with the record index): 502 ms before, 381 ms after; the 
serial storage round trips the lookup adds go from 8 to 4.
   
   ## How are the changes test-covered
   
   - [ ] N/A
   - [x] Automated tests (unit and/or integration tests)
   - [ ] Manual tests
     - [ ] Details are described below
   
   A plan-level test reads one key through `Table::read` against a recording 
store and checks that the lookup lists only the record index partition and the 
metadata timeline, not the data timeline. A record index test checks that the 
snapshot's set and the set rebuilt from storage select the same log blocks, 
including for a commit that is pending when the table opens and completes 
before the lookup.
   


-- 
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]

Reply via email to