Package com.linkedin.venice.controller
Class DeferredVersionSwapService
java.lang.Object
com.linkedin.venice.service.AbstractVeniceService
com.linkedin.venice.controller.DeferredVersionSwapService
- All Implemented Interfaces:
Closeable
,AutoCloseable
This service is in charge of swapping to a new version after a specified wait time in the remaining regions of a target region push if enabled.
The wait time is specified through a store/version level config (target_swap_region_wait_time) and the default wait time is 60m.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.linkedin.venice.service.AbstractVeniceService
AbstractVeniceService.ServiceState
-
Field Summary
Fields inherited from class com.linkedin.venice.service.AbstractVeniceService
logger, serviceState
-
Constructor Summary
ConstructorsConstructorDescriptionDeferredVersionSwapService
(VeniceParentHelixAdmin admin, VeniceControllerMultiClusterConfig multiClusterConfig, DeferredVersionSwapStats deferredVersionSwapStats) -
Method Summary
-
Constructor Details
-
DeferredVersionSwapService
public DeferredVersionSwapService(VeniceParentHelixAdmin admin, VeniceControllerMultiClusterConfig multiClusterConfig, DeferredVersionSwapStats deferredVersionSwapStats)
-
-
Method Details
-
startInner
- Specified by:
startInner
in classAbstractVeniceService
- Returns:
- true if the service is completely started,
false if it is still starting asynchronously (in this case, it is the implementer's
responsibility to set
AbstractVeniceService.serviceState
toAbstractVeniceService.ServiceState.STARTED
upon completion of the async work). - Throws:
Exception
-
stopInner
- Specified by:
stopInner
in classAbstractVeniceService
- Throws:
Exception
-