You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "vamsikarnika (via GitHub)" <gi...@apache.org> on 2026/02/05 04:31:43 UTC

[PR] fix: correct deleted keys computation in computeRevivedAndDeletedKeys [hudi]

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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: correct deleted keys computation in computeRevivedAndDeletedKeys [hudi]

Posted by "nsivabalan (via GitHub)" <gi...@apache.org>.
nsivabalan merged PR #18094:
URL: https://github.com/apache/hudi/pull/18094


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: correct deleted keys computation in computeRevivedAndDeletedKeys [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #18094:
URL: https://github.com/apache/hudi/pull/18094#issuecomment-3851048583

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "a7cd78b83ed68d3d97154768ff5989d7c195090d",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11682",
       "triggerID" : "a7cd78b83ed68d3d97154768ff5989d7c195090d",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * a7cd78b83ed68d3d97154768ff5989d7c195090d Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11682) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: correct deleted keys computation in computeRevivedAndDeletedKeys [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #18094:
URL: https://github.com/apache/hudi/pull/18094#issuecomment-3851038063

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "a7cd78b83ed68d3d97154768ff5989d7c195090d",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "a7cd78b83ed68d3d97154768ff5989d7c195090d",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * a7cd78b83ed68d3d97154768ff5989d7c195090d UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: correct deleted keys computation in computeRevivedAndDeletedKeys [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #18094:
URL: https://github.com/apache/hudi/pull/18094#issuecomment-3851239113

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "a7cd78b83ed68d3d97154768ff5989d7c195090d",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11682",
       "triggerID" : "a7cd78b83ed68d3d97154768ff5989d7c195090d",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * a7cd78b83ed68d3d97154768ff5989d7c195090d Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11682) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org