Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud configurable #142

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Cloud configurable #142

wants to merge 9 commits into from

Conversation

mrambacher
Copy link
Collaborator

This is the first pass at adding a MockCloudStorageProvider. The Mock Provider treats the "cloud buckets/paths" as alternative directories on the local machine.

By compiling RocksDB with USE_AWS or USE_CLOUD, the "core" RocksDB tests can be run against a cloud environment. This environment can be activated by using TEST_ENV_URI="provider=mock" (to test against the mock provider) or TEST_ENV_URI="id=aws" (to test against AWS/S3).

One db_cloud_test (CopyObjects) is still failing for both Cloud/AWS and the "DirectReads" test also fails for Mock. This testing has exposed a race condition in the scheduler shutdown that needs further investigation. A full test run of the RocksDB test suite against the MockProvider has yet to be undertaken (pending resolution of these other issues).

ajkr and others added 7 commits May 20, 2021 18:16
facebook#7888)

Summary:
This provides a workaround for two race conditions that will be fixed in
a more sophisticated way later. This PR:

(1) Makes the client serialize calls to `Timer::Start()` and `Timer::Shutdown()` (see facebook#7711). The long-term fix will be to make those functions thread-safe.
(2) Makes `PeriodicWorkScheduler` atomically add/cancel work together with starting/shutting down its `Timer`. The long-term fix will be for `Timer` API to offer more specialized APIs so the client will not need to synchronize.

Pull Request resolved: facebook#7888

Test Plan: ran the repro provided in facebook#7881

Reviewers: igor

Subscribers:

Differential Revision: https://rockset.phacility.com/D25990891
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants