HDDS-1878. checkstyle error in ContainerStateMachine (#1195)

This commit is contained in:
Doroszlai, Attila 2019-08-02 18:57:54 +02:00 committed by bshashikant
parent b5c74d4ab8
commit 946e301731
2 changed files with 4 additions and 5 deletions

View File

@ -91,12 +91,12 @@ public final class ScmConfigKeys {
public static final int public static final int
DFS_CONTAINER_RATIS_STATEMACHINEDATA_SYNC_RETRIES_DEFAULT = -1; DFS_CONTAINER_RATIS_STATEMACHINEDATA_SYNC_RETRIES_DEFAULT = -1;
public static final String public static final String
DFS_CONTAINER_RATIS_STATEMACHINE_MAX_PENDING_APPLY_TRANSACTIONS = DFS_CONTAINER_RATIS_STATEMACHINE_MAX_PENDING_APPLY_TXNS =
"dfs.container.ratis.statemachine.max.pending.apply-transactions"; "dfs.container.ratis.statemachine.max.pending.apply-transactions";
// The default value of maximum number of pending state machine apply // The default value of maximum number of pending state machine apply
// transactions is kept same as default snapshot threshold. // transactions is kept same as default snapshot threshold.
public static final int public static final int
DFS_CONTAINER_RATIS_STATEMACHINE_MAX_PENDING_APPLY_TRANSACTIONS_DEFAULT = DFS_CONTAINER_RATIS_STATEMACHINE_MAX_PENDING_APPLY_TXNS_DEFAULT =
100000; 100000;
public static final String DFS_CONTAINER_RATIS_LOG_QUEUE_NUM_ELEMENTS = public static final String DFS_CONTAINER_RATIS_LOG_QUEUE_NUM_ELEMENTS =
"dfs.container.ratis.log.queue.num-elements"; "dfs.container.ratis.log.queue.num-elements";

View File

@ -91,7 +91,6 @@
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.OutputStream; import java.io.OutputStream;
/** A {@link org.apache.ratis.statemachine.StateMachine} for containers. /** A {@link org.apache.ratis.statemachine.StateMachine} for containers.
* *
* The stateMachine is responsible for handling different types of container * The stateMachine is responsible for handling different types of container
@ -181,9 +180,9 @@ public ContainerStateMachine(RaftGroupId gid, ContainerDispatcher dispatcher,
OzoneConfigKeys.DFS_CONTAINER_RATIS_NUM_CONTAINER_OP_EXECUTORS_DEFAULT); OzoneConfigKeys.DFS_CONTAINER_RATIS_NUM_CONTAINER_OP_EXECUTORS_DEFAULT);
int maxPendingApplyTransactions = conf.getInt( int maxPendingApplyTransactions = conf.getInt(
ScmConfigKeys. ScmConfigKeys.
DFS_CONTAINER_RATIS_STATEMACHINE_MAX_PENDING_APPLY_TRANSACTIONS, DFS_CONTAINER_RATIS_STATEMACHINE_MAX_PENDING_APPLY_TXNS,
ScmConfigKeys. ScmConfigKeys.
DFS_CONTAINER_RATIS_STATEMACHINE_MAX_PENDING_APPLY_TRANSACTIONS_DEFAULT); DFS_CONTAINER_RATIS_STATEMACHINE_MAX_PENDING_APPLY_TXNS_DEFAULT);
applyTransactionSemaphore = new Semaphore(maxPendingApplyTransactions); applyTransactionSemaphore = new Semaphore(maxPendingApplyTransactions);
this.executors = new ExecutorService[numContainerOpExecutors]; this.executors = new ExecutorService[numContainerOpExecutors];
for (int i = 0; i < numContainerOpExecutors; i++) { for (int i = 0; i < numContainerOpExecutors; i++) {