Class SystemStoreRepairService
java.lang.Object
com.linkedin.venice.service.AbstractVeniceService
com.linkedin.venice.controller.systemstore.SystemStoreRepairService
- All Implemented Interfaces:
Closeable
,AutoCloseable
This class is the system store repair service in Venice parent controller. It will issue repair task
SystemStoreRepairTask
to check system store health and try to repair bad system store at its best effort.-
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
ConstructorDescriptionSystemStoreRepairService
(VeniceParentHelixAdmin parentAdmin, VeniceControllerMultiClusterConfig multiClusterConfigs, io.tehuti.metrics.MetricsRepository metricsRepository) -
Method Summary
-
Field Details
-
LOGGER
public static final org.apache.logging.log4j.Logger LOGGER
-
-
Constructor Details
-
SystemStoreRepairService
public SystemStoreRepairService(VeniceParentHelixAdmin parentAdmin, VeniceControllerMultiClusterConfig multiClusterConfigs, io.tehuti.metrics.MetricsRepository metricsRepository)
-
-
Method Details
-
startInner
public boolean 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).
-
stopInner
public void stopInner()- Specified by:
stopInner
in classAbstractVeniceService
-