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

binlijin commented on HBASE-10214:
----------------------------------

oh, sorry, the line is not match with the apache hbase 0.94.10 version, this is 
our own internal version which based on apache hbase 0.94.10.
{code}

        long now = System.currentTimeMillis();
        if ((now - lastMsg) >= msgInterval) {
          doMetrics();
          tryRegionServerReport();  // 753
          lastMsg = System.currentTimeMillis();
        }
        if (!this.stopped) this.sleeper.sleep();


  void tryRegionServerReport()
  throws IOException {
    HServerLoad hsl = buildServerLoad();
    // Why we do this?
    this.requestCount.set(0);
    try {
      
this.hbaseMaster.regionServerReport(this.serverNameFromMasterPOV.getVersionedBytes(),
 hsl); // line 880
    } catch (IOException ioe) {
      if (ioe instanceof RemoteException) {
        ioe = ((RemoteException)ioe).unwrapRemoteException();
      }
      if (ioe instanceof YouAreDeadException) {
        // This will be caught and handled as a fatal error in run()
        throw ioe;
      }
      // Couldn't connect to the master, get location from zk and reconnect
      // Method blocks until new master is found or we are stopped
      getMaster();
    }
  }
{code}

> Regionserver shutdown impropery and leave the dir in .old not delete.
> ---------------------------------------------------------------------
>
>                 Key: HBASE-10214
>                 URL: https://issues.apache.org/jira/browse/HBASE-10214
>             Project: HBase
>          Issue Type: Bug
>            Reporter: binlijin
>         Attachments: HBASE-10214-94.patch
>
>
> RegionServer log
> {code}
> 2013-12-18 15:17:45,771 DEBUG 
> org.apache.hadoop.hbase.regionserver.HRegionServer: Waiting on 
> 51b27391410efdca841db264df46085f
> 2013-12-18 15:17:45,776 INFO 
> org.apache.hadoop.hbase.regionserver.HRegionServer: Connected to master at 
> null
> 2013-12-18 15:17:48,776 INFO 
> org.apache.hadoop.hbase.regionserver.HRegionServer: STOPPED: Exiting; cluster 
> shutdown set and not carrying any regions
> 2013-12-18 15:17:48,776 FATAL 
> org.apache.hadoop.hbase.regionserver.HRegionServer: ABORTING region server 
> node,60020,1384410974572: Unhandled exception: null
> java.lang.NullPointerException
>         at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.tryRegionServerReport(HRegionServer.java:880)
>         at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:753)
>         at java.lang.Thread.run(Thread.java:662)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to