File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
core/src/main/java/kafka/automq/failover Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2323import org .apache .kafka .controller .stream .NodeMetadata ;
2424import org .apache .kafka .controller .stream .NodeState ;
2525
26+ import com .automq .stream .utils .Systems ;
27+
2628import java .util .Map ;
2729import java .util .Objects ;
28- import java .util .concurrent .TimeUnit ;
2930
3031/**
3132 * NodeRuntimeMetadata is a runtime view of a node's metadata.
@@ -40,7 +41,7 @@ public final class NodeRuntimeMetadata {
4041 * @see ClusterControlManager#getNextNodeId()
4142 */
4243 private static final int MAX_CONTROLLER_ID = 1000 - 1 ;
43- private static final long DONT_FAILOVER_AFTER_NEW_EPOCH_MS = TimeUnit . MINUTES . toMillis ( 1 );
44+ private static final long DONT_FAILOVER_AFTER_NEW_EPOCH_MS = Systems . getEnvLong ( "AUTOMQ_CONTROLLER_DONT_FAILOVER_AFTER_NEW_EPOCH_MS" , 60L * 1000 );
4445 private final int id ;
4546 private final long epoch ;
4647 private final String walConfigs ;
You can’t perform that action at this time.
0 commit comments