Package com.linkedin.venice.controller
Class ErrorPartitionResetTask
java.lang.Object
com.linkedin.venice.controller.ErrorPartitionResetTask
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Runnable
A task that iterates over store version resources and reset error partitions if they meet the following criteria:
- The store version resource is the current version.
- The error partition only has exactly one error replica.
- For L/F model, using EV to check error replicas misses internal error replica states. For example, a replica is shown Leader in EV but actually ERROR in offline push status.
-
Constructor Summary
ConstructorDescriptionErrorPartitionResetTask
(String clusterName, HelixAdminClient helixAdminClient, ReadOnlyStoreRepository readOnlyStoreRepository, HelixExternalViewRepository routingDataRepository, PushMonitor pushMonitor, io.tehuti.metrics.MetricsRepository metricsRepository, int errorPartitionAutoResetLimit, long processingCycleDelayMs) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
CauseErrorPartitionResetTask
to stop executing.void
run()
-
Constructor Details
-
ErrorPartitionResetTask
public ErrorPartitionResetTask(String clusterName, HelixAdminClient helixAdminClient, ReadOnlyStoreRepository readOnlyStoreRepository, HelixExternalViewRepository routingDataRepository, PushMonitor pushMonitor, io.tehuti.metrics.MetricsRepository metricsRepository, int errorPartitionAutoResetLimit, long processingCycleDelayMs)
-
-
Method Details
-
run
public void run() -
close
public void close()CauseErrorPartitionResetTask
to stop executing.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-