- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3.4k
HBASE-22737 Add a new admin method and shell cmd to trigger the hbck … #425
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
Conversation
| Should this be in Admin? Or in Hbck? | 
| 💔 -1 overall 
 
 
 This message was automatically generated. | 
| 💔 -1 overall 
 
 
 This message was automatically generated. | 
        
          
                hbase-server/src/main/java/org/apache/hadoop/hbase/master/HbckChore.java
          
            Show resolved
            Hide resolved
        
              
          
                hbase-server/src/main/java/org/apache/hadoop/hbase/master/HbckChore.java
          
            Show resolved
            Hide resolved
        
      | throws ServiceException { | ||
| rpcPreCheck("runHbckChore"); | ||
| HbckChore hbckChore = master.getHbckChore(); | ||
| if (!hbckChore.isRunning()) { | 
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.
If already running, should result of this call be 'false' for did not run?//
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.
Ok. Return false if the HBCK chore already running.
| #---------------------------------------------------------------------------------------------- | ||
| # Request HBCK chore to run | ||
| def hbck_chore_run | ||
| @admin.runHbckChore | 
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.
Yeah, good question by @duo regards whether it should be in hbcksevice or not. It probably should?
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.
OK.
| def help | ||
| <<-EOF | ||
| Request HBCK chore to run at master side. | ||
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.
Perhaps say what the chore does? One sentence?
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.
Missing 'm' on Filesystem. Fix on commit.
| 💔 -1 overall 
 
 This message was automatically generated. | 
| 💔 -1 overall 
 
 This message was automatically generated. | 
| 💔 -1 overall 
 
 This message was automatically generated. | 
| 💔 -1 overall 
 
 This message was automatically generated. | 
| 💔 -1 overall 
 
 
 This message was automatically generated. | 
| 💔 -1 overall 
 
 This message was automatically generated. | 
| 💔 -1 overall 
 
 This message was automatically generated. | 
| 💔 -1 overall 
 
 This message was automatically generated. | 
| 💔 -1 overall 
 
 
 This message was automatically generated. | 
| 💔 -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.
Minor item to fix on commit.
| def help | ||
| <<-EOF | ||
| Request HBCK chore to run at master side. | ||
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.
Missing 'm' on Filesystem. Fix on commit.
| 💔 -1 overall 
 
 This message was automatically generated. | 
…chore to run (#425) Signed-off-by: stack <[email protected]>
| 💔 -1 overall 
 
 This message was automatically generated. | 
…chore to run (#425) Signed-off-by: stack <[email protected]>
…chore to run (#425) Signed-off-by: stack <[email protected]>
…chore to run (#425) Signed-off-by: stack <[email protected]>
…chore to run (apache#425) Signed-off-by: stack <[email protected]>
…chore to run (apache#425) Signed-off-by: stack <[email protected]> (cherry picked from commit 5ec1fed) Change-Id: I1d4fa998b1f167bf292b819fc42f935cd2fc3ca0
…chore to run