Package com.linkedin.venice.controller
Class ErrorPartitionResetTask
- java.lang.Object
-
- com.linkedin.venice.controller.ErrorPartitionResetTask
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Runnable
public class ErrorPartitionResetTask extends java.lang.Object implements java.lang.Runnable, java.io.Closeable
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
Constructors Constructor Description ErrorPartitionResetTask(java.lang.String clusterName, HelixAdminClient helixAdminClient, ReadOnlyStoreRepository readOnlyStoreRepository, HelixExternalViewRepository routingDataRepository, PushMonitor pushMonitor, io.tehuti.metrics.MetricsRepository metricsRepository, int errorPartitionAutoResetLimit, long processingCycleDelayMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
CauseErrorPartitionResetTask
to stop executing.void
run()
-
-
-
Constructor Detail
-
ErrorPartitionResetTask
public ErrorPartitionResetTask(java.lang.String clusterName, HelixAdminClient helixAdminClient, ReadOnlyStoreRepository readOnlyStoreRepository, HelixExternalViewRepository routingDataRepository, PushMonitor pushMonitor, io.tehuti.metrics.MetricsRepository metricsRepository, int errorPartitionAutoResetLimit, long processingCycleDelayMs)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
close
public void close()
CauseErrorPartitionResetTask
to stop executing.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-