diff options
author | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2021-04-19 13:27:12 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2021-04-21 14:38:42 +0000 |
commit | e0d7b4ae709383ff005b7b6deef5cd3c79aabdb6 (patch) | |
tree | bd0bded76c6ef4444aad99f5c0b6a9fa0f01ba1c /storage/src/tests/distributor/distributortestutil.h | |
parent | dc0bca9a4329ac6d4a000cf410e5b784f45bb2e5 (diff) |
Initial implementation and wiring of cross-stripe state and DB handling
Introduces the concept of stripe access guards, that ensure safe and
non-concurrent access to the underlying state of all running distributor
stripes. Also bring back a top-level `BucketDBUpdater` component responsible
for managing cluster state/distribution config and all related bucket info
fetching for the entire node as a whole. This component abstracts away all
stripe-specific operations via the new guard interface.
For now, only a single stripe can be used via the new code path, and by
default the legacy code path (single stripe acts as an entire distirbutor)
is used. New path may be enabled via (non-live) config, but is not yet
production ready.
Diffstat (limited to 'storage/src/tests/distributor/distributortestutil.h')
-rw-r--r-- | storage/src/tests/distributor/distributortestutil.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/src/tests/distributor/distributortestutil.h b/storage/src/tests/distributor/distributortestutil.h index d3c0445d5b5..ddf153a1406 100644 --- a/storage/src/tests/distributor/distributortestutil.h +++ b/storage/src/tests/distributor/distributortestutil.h @@ -17,7 +17,7 @@ namespace framework { struct TickingThreadPool; } namespace distributor { -class BucketDBUpdater; +class StripeBucketDBUpdater; class Distributor; class DistributorBucketSpace; class DistributorBucketSpaceRepo; @@ -112,7 +112,7 @@ public: int idx = -1, api::ReturnCode::Result result = api::ReturnCode::OK); - BucketDBUpdater& getBucketDBUpdater(); + StripeBucketDBUpdater& getBucketDBUpdater(); IdealStateManager& getIdealStateManager(); ExternalOperationHandler& getExternalOperationHandler(); storage::distributor::DistributorStripeComponent& distributor_component(); |