-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[da-vinci][server] Fixed the race condition during BlobDB rolling out…
…/back (#1500) (#1502) * [da-vinci][server] Fixed the race condition during BlobDB rolling out/back Because of the blob-db integration, `SIT` will forcibly set `sorted` to `false` for hybrid stores and inconsistent `sorted` can happen during the rolling out/rolling back blob-db features. Here is one case how it can happen during the rolling out of blob-db: 1. P1 processes `SOP` with `sorted=true` and persist it in `StoreVersionState`. 2. P2 hasn't started processing `SOP` yet. 3. Restart the cluster and roll out blob-db feature. 4. when P2 processes `SOP` with `sorted=true`, it will forcibly set `sorted=false`, and it will be different from the previously persisted `StoreVersionState`. 5. This is fine as long as we just follow the previously persisted `StoreVersionState`. 6. Here are the reasons why step 5 is true: a. If the input for a given partition is truly sorted, it can always be ingested as unsorted data. b. If the input for a given partition is not sorted, the underlying `SSTFileWriter` will throw exception when we try to ingest it as sorted data. * Fixed comments
- Loading branch information
Showing
8 changed files
with
114 additions
and
53 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