-
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.
kvserver: declare lock spans for
AddSSTable
`AddSSTable` did not declare lock spans, even though it can return `WriteIntentError` when encountering unresolved intents (e.g. when checking for key collisions with `DisallowShadowing` set). This would cause the concurrency manager to error with e.g.: ``` cannot handle WriteIntentError ‹conflicting intents on /Table/84/1/99/49714/0› for request without lockTableGuard; were lock spans declared for this request? ``` This patch makes `AddSSTable` take out lock spans via `DefaultDeclareIsolatedKeys` if `DisallowShadowing` is set. This will automatically handle any unresolved intents via the concurrency manager. Release note (bug fix): `IMPORT INTO` no longer crashes when encountering unresolved write intents.
- Loading branch information
1 parent
5d972a6
commit 39d28d7
Showing
1 changed file
with
69 additions
and
1 deletion.
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