Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-4112

Creating table may throw NullPointerException

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.90.3
    • 0.90.4
    • master
    • None

    Description

      It happened in latest branch 0.90. but I can't reproduce it.
      >
      > It seems using api getHRegionInfoOrNull is better or check the input parameter before call getHRegionInfo.
      >
      > Code:
      > public static Writable getWritable(final byte [] bytes, final
      > Writable w)
      > throws IOException

      { > return getWritable(bytes, 0, bytes.length, w); > }

      > return getWritable(bytes, 0, bytes.length, w); // It seems input
      > parameter bytes is null
      >
      > logs:
      > 11/07/15 10:15:42 INFO zookeeper.ClientCnxn: Socket connection
      > established to C4C3.site/157.5.100.3:2181, initiating session
      > 11/07/15 10:15:42 INFO zookeeper.ClientCnxn: Session establishment
      > complete on server C4C3.site/157.5.100.3:2181, sessionid = 0x2312b8e3f700002, negotiated timeout = 180000 [INFO] Create : ufdr111 222!
      > [INFO] Create : ufdr111 start!
      > java.lang.NullPointerException
      > at
      > org.apache.hadoop.hbase.util.Writables.getWritable(Writables.java:75)
      > at
      > org.apache.hadoop.hbase.util.Writables.getHRegionInfo(Writables.java:1
      > 19)
      > at
      > org.apache.hadoop.hbase.client.HBaseAdmin$1.processRow(HBaseAdmin.java
      > :306)
      > at
      > org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:1
      > 90)
      > at
      > org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:9
      > 5)
      > at
      > org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:7
      > 3)
      > at
      > org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:
      > 325)
      > at createTable.main(createTable.java:96)
      >

      Attachments

        1. HBASE-4112_Trunk.patch
          0.9 kB
          gaojinchao
        2. HBASE-4112_branch90V1.patch
          1 kB
          gaojinchao

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sunnygao gaojinchao
            sunnygao gaojinchao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment