Package com.linkedin.venice.pushmonitor
Class LeakedPushStatusCleanUpService
java.lang.Object
com.linkedin.venice.service.AbstractVeniceService
com.linkedin.venice.pushmonitor.LeakedPushStatusCleanUpService
- All Implemented Interfaces:
Closeable,AutoCloseable
Reclaims push statuses that servers may write after asynchronous push cancellation and controller cleanup.
Drops leaked Helix resources before removing residual push-status ZNodes on a later sweep.
Runs with
HelixVeniceClusterResources after metadata initialization and stops before repository teardown.
The shared lock manager fences eligibility and deletion against store recreation and repository clearing.-
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
ConstructorsConstructorDescriptionLeakedPushStatusCleanUpService(String clusterName, OfflinePushAccessor offlinePushAccessor, ReadOnlyStoreRepository metadataRepository, StoreCleaner storeCleaner, ClusterLockManager clusterLockManager, AggPushStatusCleanUpStats aggPushStatusCleanUpStats, long sleepIntervalInMs, long leakedResourceAllowedLingerTimeInMs) -
Method Summary
-
Constructor Details
-
LeakedPushStatusCleanUpService
public LeakedPushStatusCleanUpService(String clusterName, OfflinePushAccessor offlinePushAccessor, ReadOnlyStoreRepository metadataRepository, StoreCleaner storeCleaner, ClusterLockManager clusterLockManager, AggPushStatusCleanUpStats aggPushStatusCleanUpStats, long sleepIntervalInMs, long leakedResourceAllowedLingerTimeInMs)
-
-
Method Details
-
startInner
- Specified by:
startInnerin 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.serviceStatetoAbstractVeniceService.ServiceState.STARTEDupon completion of the async work). - Throws:
Exception
-
stopInner
- Specified by:
stopInnerin classAbstractVeniceService- Throws:
Exception
-