-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HBASE-22810 Initialize an separate ThreadPoolExecutor for taking/restoring snapshot #486
Conversation
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
hbase-server/src/main/java/org/apache/hadoop/hbase/executor/EventType.java
Show resolved
Hide resolved
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
Outdated
Show resolved
Hide resolved
@@ -1431,6 +1431,8 @@ private void startServiceThreads() throws IOException{ | |||
conf.getInt("hbase.master.executor.meta.serverops.threads", 5)); | |||
this.executorService.startExecutorService(ExecutorType.M_LOG_REPLAY_OPS, | |||
conf.getInt("hbase.master.executor.logreplayops.threads", 10)); | |||
this.executorService.startExecutorService(ExecutorType.MASTER_SNAPSHOT_OPERATIONS, | |||
conf.getInt("hbase.master.executor.snapshot.threads", 3)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better make a static field for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1.
But please fix the checkstyle issues before merging... |
The checkstyle is not an issue I think, the '(' is preceded by a whitespace because we want to make the code align as before : /**
* Messages originating from Client to Master.<br>
* C_M_CREATE_TABLE<br>
* Client asking Master to create a table.
*/
C_M_CREATE_TABLE (47, ExecutorType.MASTER_TABLE_OPERATIONS),
/**
* Messages originating from Client to Master.<br>
* C_M_SNAPSHOT_TABLE<br>
* Client asking Master to snapshot an offline table.
*/
C_M_SNAPSHOT_TABLE (48, ExecutorType.MASTER_SNAPSHOT_OPERATIONS),
/**
* Messages originating from Client to Master.<br>
* C_M_RESTORE_SNAPSHOT<br>
* Client asking Master to restore a snapshot.
*/
C_M_RESTORE_SNAPSHOT (49, ExecutorType.MASTER_SNAPSHOT_OPERATIONS), |
💔 -1 overall
This message was automatically generated. |
…oring snapshot (apache#486) (cherry picked from commit b4734e7) Change-Id: Id5c952da1949f7039d6caa5329c6599ca54fbba4
…oring snapshot