-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vpj] Fixed KIF repush to handle chunk cleanup messages (#603)
The behavior of the regression is as follows: 1. The chunk delete message will use `-10` as schema id. 2. When KIF encounters a delete message, it would ignore the schema id and treat the key as a top-level key and it would use non-chunk-suffix to decide the key portion from the composite key, which is wrong. 3. During shuffle and sort phase, if there is no collsion between the regular keys and the wrong key extracted from #2, no issue, and if there is a collision (which is rare), this entry will be removed from repush, which would result in data loss. This code change fixes the regression in the following way: 1. Use delete.schema_id to decide how to handle delete key. 2. Skip the chunk cleanup message when assembling large message in repush. There is an existing E2E test for this scenario: PartialUpdateTest#testReplicationMetadataChunkingE2E And the reason it didn't fail is that the exact condition as described above didn't trigger.
- Loading branch information
Showing
6 changed files
with
51 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters