cypherean commented on PR #20263:
URL: https://github.com/apache/pinot/pull/20263#issuecomment-7308535108

   Thanks for picking this up and for sharing the benchmarks! Since you 
offered, I’d prefer to fold your commits into #19577(with you listed as 
co-author) so the history and prior discussion stay consolidated in one PR. 
Feel free to target my branch with a PR, or let me know and I can cherry-pick 
your commits onto #19577. 
   
   A few notes based on the root-cause update on #19576:
   
   1. **fsync question from @xiangfu0.** A sync error likely wouldn't have been 
reported. An `O_DIRECT` read of the affected files returns intact bytes, so the 
writes reached disk and the bad data sat in the page cache, not below it. We 
didn't capture sync return codes on the affected hosts, so this follows from 
the `O_DIRECT` result. The crash-durability hardening is still worthwhile. 
   2. **Option B.** Agree with option 2 (matching c2e1916). Syncing temp files 
covers only a few seconds before the v3 copy, which doesn't seem worth ~5 s on 
a 2 GB commit path.
   3. **CRC follow-up.** `O_DIRECT` is a good reference since it bypasses the 
page cache. Things to keep in mind:
      -  A check at commit or download time can pass while the page cache goes 
bad later, during query-time reads.
      - The `creation.meta` CRC is computed after the v3 conversion, so it 
already covers `columns.psf` and may work as the reference.
   4. **Tests.** A small fault-injection test with a failing `force()` or 
`msync` would cover the cleanup-on-failure paths. Only review covers them today.
   


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

Reply via email to