eshaanjain26 commented on issue #19151:
URL: https://github.com/apache/iceberg/issues/19151#issuecomment-7248402749

   Support for the staged plan. Splitting this into independently verifiable 
increments behind a flag is the right shape for a change that touches the write 
path, the commit path, and recovery at the same time.
   
   Three points I would want pinned down before the later increments land:
   
   First, the primary key index needs an explicit correctness contract. Step 2 
says the index is rebuilt for a new generation when it is no longer 
trustworthy. The design should state who decides that, what signal triggers it, 
and what the sink does while a rebuild is in progress. A silently stale index 
produces wrong deletion vectors, which is worse than a loud failure.
   
   Second, the snapshot retention precondition in step 5 reads like an 
operational requirement, not just documentation. If a restart takes longer than 
the retained snapshot window, restarts fail in a way operators will not 
predict. I would promote that to a startup check with a clear error, alongside 
the format version and leftover equality delete checks already listed.
   
   Third, each increment would benefit from named acceptance cases: insert then 
delete within one checkpoint, compaction rewriting a data file while the sink 
is active, and restore from checkpoint with a cold index. These are the cases 
where DV-only behaviour will diverge from the equality delete path if it 
diverges anywhere.
   
   I am happy to review the design doc sections on index rebuild and commit 
conflict handling, and to turn the acceptance cases above into a checklist the 
increments can be tested against.
   
   Eshaan Jain, independent researcher (IEEE Senior Member)


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