Class MigrationPushStrategyZKAccessor
java.lang.Object
com.linkedin.venice.controller.migration.MigrationPushStrategyZKAccessor
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMigrationPushStrategyZKAccessor
(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapter) -
Method Summary
Modifier and TypeMethodDescriptionThe reason to return the push strategy for all the stores: 1.void
setPushStrategy
(String voldemortStoreName, String pushStrategyStr)
-
Field Details
-
MIGRATION_PUSH_STRATEGY_PATH
- See Also:
-
-
Constructor Details
-
MigrationPushStrategyZKAccessor
public MigrationPushStrategyZKAccessor(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapter)
-
-
Method Details
-
getAllPushStrategies
The reason to return the push strategy for all the stores: 1. It is necessary for admin tool to retrieve push strategy for all the stores; 2. Right now,ControllerClient
doesn't provide a good way to recognize "not-exist" status since the backend always throws an exception; 3. Combo plugin needs to know whether the push strategy exists or not to decide whether to use the default push strategy; It is definitely possible to support 'not-exist' case: such as updating ControllerClient to be aware of '404', but right now I choose to return the push strategy for all the stores, and let client decide. -
setPushStrategy
-