Class RemoteIngestionRepairService
java.lang.Object
com.linkedin.venice.service.AbstractVeniceService
com.linkedin.davinci.kafka.consumer.RemoteIngestionRepairService
- All Implemented Interfaces:
Closeable
,AutoCloseable
Singleton class meant to keep track of subscription failures for ingestion tasks where the ingestion
task needs to keep running despite cluster failures.
TODO: This class could stand to be refactored into an Actor class, but it seems we're short on time just now,
so we're going for old hat to start with AbstractVeniceService.
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerRepairTask
(StoreIngestionTask storeIngestionTask, Runnable repairTask) boolean
void
void
unregisterRepairTasksForStoreIngestionTask
(StoreIngestionTask storeIngestionTask)
-
Field Details
-
DEFAULT_REPAIR_THREAD_SLEEP_INTERVAL_SECONDS
public static final int DEFAULT_REPAIR_THREAD_SLEEP_INTERVAL_SECONDS- See Also:
-
-
Constructor Details
-
RemoteIngestionRepairService
public RemoteIngestionRepairService(int repairThreadSleepInterval)
-
-
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
-
registerRepairTask
-
unregisterRepairTasksForStoreIngestionTask
-