HBase
  1. HBase
  2. HBASE-1339

NPE in HCM.procesRow called from master.jsp

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      2009-04-22 02:10:34,710 WARN /: /master.jsp:
      java.lang.NullPointerException
          at org.apache.hadoop.hbase.client.HConnectionManager$TableServers$1.processRow(HConnectionManager.java:344)
          at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:64)
          at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:29)
          at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.listTables(HConnectionManager.java:351)
          at org.apache.hadoop.hbase.client.HBaseAdmin.listTables(HBaseAdmin.java:121)
          at org.apache.hadoop.hbase.generated.master.master_jsp._jspService(master_jsp.java:121)
          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
          at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
          at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475)
          at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
          at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
          at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635)
          at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
          at org.mortbay.http.HttpServer.service(HttpServer.java:954)
          at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
          at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
          at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
          at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
          at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
          at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
      

        Activity

        Hide
        stack added a comment -

        This bit of code is getting an empty HRI:

                public boolean processRow(RowResult rowResult) throws IOException {
                  HRegionInfo info = Writables.getHRegionInfo(
                      rowResult.get(COL_REGIONINFO));
        
                  // Only examine the rows where the startKey is zero length
                  if (info.getStartKey().length == 0) {
                    uniqueTables.add(info.getTableDesc());
                  }
                  return true;
                }
        

        Thats odd.

        Show
        stack added a comment - This bit of code is getting an empty HRI: public boolean processRow(RowResult rowResult) throws IOException { HRegionInfo info = Writables.getHRegionInfo( rowResult.get(COL_REGIONINFO)); // Only examine the rows where the startKey is zero length if (info.getStartKey().length == 0) { uniqueTables.add(info.getTableDesc()); } return true ; } Thats odd.
        Hide
        stack added a comment -

        Here is another permutation on above:

        2009-04-22 02:12:20,212 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 23 on 60000, call modifyTable([B@5a86b4c9, 4, [Lorg.apache.hadoop.io.Writable;@41c7268d) from 10.20.20.154:37007: error: java.io.IOException: java.lang.NullPointerException
        java.io.IOException: java.lang.NullPointerException
            at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:893)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:623)
            at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
            at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:909)
        
              RowResult rr = getFromMETA(regionname, HConstants.COLUMN_FAMILY_ARRAY);
              HRegionInfo hri = getHRegionInfo(rr.getRow(), rr);
        
        Show
        stack added a comment - Here is another permutation on above: 2009-04-22 02:12:20,212 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 23 on 60000, call modifyTable([B@5a86b4c9, 4, [Lorg.apache.hadoop.io.Writable;@41c7268d) from 10.20.20.154:37007: error: java.io.IOException: java.lang.NullPointerException java.io.IOException: java.lang.NullPointerException at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:893) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:623) at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632) at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:909) RowResult rr = getFromMETA(regionname, HConstants.COLUMN_FAMILY_ARRAY); HRegionInfo hri = getHRegionInfo(rr.getRow(), rr);
        Hide
        stack added a comment -

        No longer pertinent. We don't see this any more.

        Show
        stack added a comment - No longer pertinent. We don't see this any more.

          People

          • Assignee:
            Unassigned
            Reporter:
            stack
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development