vamsikarnika opened a new pull request, #18094:
URL: https://github.com/apache/hudi/pull/18094

   ### Describe the issue this Pull Request addresses
   
   The previous logic computed deleted keys as the intersection of 
validKeysForPreviousLogs and deletedKeysForAllLogs, which missed newly deleted 
keys that weren't in the previous valid set.                                    
                 
   
   The fix changes the logic to compute deleted keys as deletedKeysForAllLogs 
minus deletedKeysForPreviousLogs, which correctly captures all newly deleted 
keys.
   
   ### Summary and Changelog
   
   - Fixed `computeRevivedAndDeletedKeys` to compute deleted keys as 
`deletedKeysForAllLogs - deletedKeysForPreviousLogs` instead of 
`validKeysForPreviousLogs ∩ deletedKeysForAllLogs`
   - Updated test expectations to include K7 in expected deleted keys
   
   ### Impact
   
   Prevents potential data inconsistency in metadata table where deleted 
records might not be properly tracked
   
   ### Risk Level
   
   LOW
   
   ### Documentation Update
   
   NA
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Enough context is provided in the sections above
   - [ ] Adequate tests were added if applicable
   


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