[ 
https://issues.apache.org/jira/browse/HBASE-22023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16789198#comment-16789198
 ] 

Hadoop QA commented on HBASE-22023:
-----------------------------------

| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | {color:blue} reexec {color} | {color:blue}  0m  
0s{color} | {color:blue} Docker mode activated. {color} |
| {color:red}-1{color} | {color:red} patch {color} | {color:red}  0m  5s{color} 
| {color:red} HBASE-22023 does not apply to master. Rebase required? Wrong 
Branch? See https://yetus.apache.org/documentation/0.8.0/precommit-patchnames 
for help. {color} |
\\
\\
|| Subsystem || Report/Notes ||
| JIRA Issue | HBASE-22023 |
| JIRA Patch URL | 
https://issues.apache.org/jira/secure/attachment/12961924/0001-fix-HBASE-22023-on-branch-1.4.patch
 |
| Console output | 
https://builds.apache.org/job/PreCommit-HBASE-Build/16324/console |
| Powered by | Apache Yetus 0.8.0   http://yetus.apache.org |


This message was automatically generated.



> similar to HBASE-21740: NPE happens while shutdown the RS
> ---------------------------------------------------------
>
>                 Key: HBASE-22023
>                 URL: https://issues.apache.org/jira/browse/HBASE-22023
>             Project: HBase
>          Issue Type: Bug
>            Reporter: lujie
>            Assignee: lujie
>            Priority: Major
>         Attachments: 0001-fix-HBASE-22023-on-branch-1.4.patch, 
> 0001-fix-HBASE-22023-on-branch-2.2.patch, 
> 0001-fix-HBASE-22023-on-master.patch, HBASE-22023_1.patch, 
> HBASE-22023_branch_1.4_1.patch, HBASE-22023_branch_2.2_1.patch, 
> HBASE-22023_branch_2.2_2.patch
>
>
> shutdown command comes before startServices:
> {code:java}
> if (!isStopped() && !isAborted()) {
>   initializeThreads();
> }{code}
> so initializeThreads will skip and leases is null
> leases will be used in line 1996 without check, hence NPE happens
> Give the simple fix!
> {code:java}
> 2019-03-10 14:17:12,690 ERROR [regionserver/hadoop15:16020] 
> regionserver.HRegionServer: Failed init
> java.lang.NullPointerException
> at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.startServices(HRegionServer.java:1996)
> at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.handleReportForDutyResponse(HRegionServer.java:1575)
> at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:976)
> at java.lang.Thread.run(Thread.java:745)
> 2019-03-10 14:17:12,719 ERROR [regionserver/hadoop15:16020] 
> regionserver.HRegionServer: ***** ABORTING region server 
> hadoop15,16020,1552198622594: Unhandled: Region server startup failed *****
> java.io.IOException: Region server startup failed
> at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.convertThrowableToIOE(HRegionServer.java:3398)
> at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.handleReportForDutyResponse(HRegionServer.java:1594)
> at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:976)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NullPointerException
> at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.startServices(HRegionServer.java:1996)
> at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.handleReportForDutyResponse(HRegionServer.java:1575)
> ... 2 more
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to