Formating and remove unused variable
This commit is contained in:
parent
37562aa082
commit
2f17a68b2a
1 changed files with 4 additions and 7 deletions
|
|
@ -80,12 +80,6 @@ public final class LeaseAssignmentManager {
|
||||||
*/
|
*/
|
||||||
private static final int DEFAULT_FAILURE_COUNT_TO_SWITCH_LEADER = 3;
|
private static final int DEFAULT_FAILURE_COUNT_TO_SWITCH_LEADER = 3;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default multiplier for LAM frequency with respect to leaseDurationMillis (lease failover millis).
|
|
||||||
* If leaseDurationMillis is 10000 millis, default LAM frequency is 20000 millis.
|
|
||||||
*/
|
|
||||||
private static final int DEFAULT_LEASE_ASSIGNMENT_MANAGER_FREQ_MULTIPLIER = 2;
|
|
||||||
|
|
||||||
private static final String FORCE_LEADER_RELEASE_METRIC_NAME = "ForceLeaderRelease";
|
private static final String FORCE_LEADER_RELEASE_METRIC_NAME = "ForceLeaderRelease";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -130,7 +124,10 @@ public final class LeaseAssignmentManager {
|
||||||
// so reset the flag to refresh the state before processing during a restart of LAM.
|
// so reset the flag to refresh the state before processing during a restart of LAM.
|
||||||
tookOverLeadershipInThisRun = false;
|
tookOverLeadershipInThisRun = false;
|
||||||
managerFuture = executorService.scheduleWithFixedDelay(
|
managerFuture = executorService.scheduleWithFixedDelay(
|
||||||
this::performAssignment, 0L, (int) (leaseAssignmentIntervalMillis), TimeUnit.MILLISECONDS);
|
this::performAssignment,
|
||||||
|
0L,
|
||||||
|
(int) (leaseAssignmentIntervalMillis),
|
||||||
|
TimeUnit.MILLISECONDS);
|
||||||
log.info("Started LeaseAssignmentManager");
|
log.info("Started LeaseAssignmentManager");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue