-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kv: extend CPut with FailOnTombstones option
This commit extends the CPut command with FailOnTombstones option that we already have in the InitPut - it makes it so that the CPut fails with a ConditionFailedError if it encounters a tombstone. This begins the process of folding all usages of InitPuts into CPuts. (We actually have only one place where we use InitPuts with this flag set - in the sql liveness system which allows us to ensure that after a session is dead, it cannot be resurrected, which allows us to keep the dead session cache easily.) InitPut request was introduced long time ago in 1a95630 when we considered extending CPut with a boolean for special tombstone handling too burdensome and ugly. Since then we have extended the CPut with a few options, so adding an extra one doesn't seem like a big deal anymore. On the plus side, it removes the confusion that I personally had for why we used InitPut as opposed to CPut with nil expected value in a few places (all were removed in the previous commit). The deprecation was alluded to during the review of #35157. In terms of deprecating the InitPut altogether here is the expected timeline: - sometime after compatibility with 24.3 is no longer needed (so 25.3+), we will remove the last spot were we still issue InitPut in the sql liveness system - sometime after compatibilty with the version mentioned above (say 26.1+), we'll be able to remove all InitPut-related code. Release note: None
- Loading branch information
1 parent
45bd97c
commit ef02b98
Showing
16 changed files
with
208 additions
and
36 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
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
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
Oops, something went wrong.