Package com.linkedin.venice.controller
Class MockStoreLifecycleHooks
java.lang.Object
com.linkedin.venice.hooks.StoreLifecycleHooks
com.linkedin.venice.controller.MockStoreLifecycleHooks
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpreStoreVersionSwap(String clusterName, String storeName, int versionNumber, String regionName, Lazy<JobStatusQueryResponse> jobStatus, VeniceProperties storeHooksConfigs) Invoked prior to swapping read traffic for servers.Methods inherited from class com.linkedin.venice.hooks.StoreLifecycleHooks
getDefaultConfigs, postEndOfPushJob, postSchemaRegistration, postStartOfPushJob, postStartOfStoreVersionIngestionForDaVinci, postStoreCreation, postStoreDeletion, postStoreVersionCreation, postStoreVersionDeletion, postStoreVersionLeaderReplication, postStoreVersionSwap, postStoreVersionSwap, preEndOfPushJob, preSchemaRegistration, preStartOfPushJob, preStartOfStoreVersionIngestionForDaVinci, preStoreCreation, preStoreDeletion, preStoreVersionCreation, preStoreVersionDeletion, validateHookConfig, validateHookParams
-
Constructor Details
-
MockStoreLifecycleHooks
-
-
Method Details
-
preStoreVersionSwap
public StoreVersionLifecycleEventOutcome preStoreVersionSwap(String clusterName, String storeName, int versionNumber, String regionName, Lazy<JobStatusQueryResponse> jobStatus, VeniceProperties storeHooksConfigs) Description copied from class:StoreLifecycleHooksInvoked prior to swapping read traffic for servers. Specifically, this means:
- Leader replication is complete.
- A sufficient number of followers have completed their ingestion.
- All online Da Vinci Client instances have already swapped their reads to the new store-version.
Cardinality: once per store-version per region which is ready to swap.- Overrides:
preStoreVersionSwapin classStoreLifecycleHooks
-