You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "gaojinchao (JIRA)" <ji...@apache.org> on 2011/07/18 04:52:00 UTC

[jira] [Created] (HBASE-4112) Creating table threw NullPointerException

Creating table threw NullPointerException
-----------------------------------------

                 Key: HBASE-4112
                 URL: https://issues.apache.org/jira/browse/HBASE-4112
             Project: HBase
          Issue Type: Bug
          Components: master
    Affects Versions: 0.90.3
            Reporter: gaojinchao
             Fix For: 0.90.4


 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)
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4112) Creating table threw NullPointerException

Posted by "gaojinchao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

gaojinchao updated HBASE-4112:
------------------------------

    Attachment: HBASE-4112_branch90V1.patch

> Creating table threw NullPointerException
> -----------------------------------------
>
>                 Key: HBASE-4112
>                 URL: https://issues.apache.org/jira/browse/HBASE-4112
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.90.3
>            Reporter: gaojinchao
>             Fix For: 0.90.4
>
>         Attachments: HBASE-4112_branch90V1.patch
>
>
>  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)
> >

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4112) Creating table may throw NullPointerException

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Yu updated HBASE-4112:
--------------------------

    Summary: Creating table may throw NullPointerException  (was: Creating table threw NullPointerException)

> Creating table may throw NullPointerException
> ---------------------------------------------
>
>                 Key: HBASE-4112
>                 URL: https://issues.apache.org/jira/browse/HBASE-4112
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.90.3
>            Reporter: gaojinchao
>            Assignee: gaojinchao
>             Fix For: 0.90.4
>
>         Attachments: HBASE-4112_Trunk.patch, HBASE-4112_branch90V1.patch
>
>
>  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)
> >

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4112) Creating table may throw NullPointerException

Posted by "gaojinchao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

gaojinchao updated HBASE-4112:
------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> Creating table may throw NullPointerException
> ---------------------------------------------
>
>                 Key: HBASE-4112
>                 URL: https://issues.apache.org/jira/browse/HBASE-4112
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.90.3
>            Reporter: gaojinchao
>            Assignee: gaojinchao
>             Fix For: 0.90.4
>
>         Attachments: HBASE-4112_Trunk.patch, HBASE-4112_branch90V1.patch
>
>
>  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)
> >

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4112) Creating table threw NullPointerException

Posted by "gaojinchao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

gaojinchao updated HBASE-4112:
------------------------------

    Attachment: HBASE-4112_Trunk.patch

> Creating table threw NullPointerException
> -----------------------------------------
>
>                 Key: HBASE-4112
>                 URL: https://issues.apache.org/jira/browse/HBASE-4112
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.90.3
>            Reporter: gaojinchao
>            Assignee: gaojinchao
>             Fix For: 0.90.4
>
>         Attachments: HBASE-4112_Trunk.patch, HBASE-4112_branch90V1.patch
>
>
>  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)
> >

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4112) Creating table threw NullPointerException

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067448#comment-13067448 ] 

Ted Yu commented on HBASE-4112:
-------------------------------

Alright.
+1 on patch.

Can you produce patch for TRUNK as well ?

> Creating table threw NullPointerException
> -----------------------------------------
>
>                 Key: HBASE-4112
>                 URL: https://issues.apache.org/jira/browse/HBASE-4112
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.90.3
>            Reporter: gaojinchao
>            Assignee: gaojinchao
>             Fix For: 0.90.4
>
>         Attachments: HBASE-4112_branch90V1.patch
>
>
>  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)
> >

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4112) Creating table may throw NullPointerException

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067476#comment-13067476 ] 

Ted Yu commented on HBASE-4112:
-------------------------------

Integrated to branch and TRUNK.

Thanks for the patch Jinchao.

> Creating table may throw NullPointerException
> ---------------------------------------------
>
>                 Key: HBASE-4112
>                 URL: https://issues.apache.org/jira/browse/HBASE-4112
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.90.3
>            Reporter: gaojinchao
>            Assignee: gaojinchao
>             Fix For: 0.90.4
>
>         Attachments: HBASE-4112_Trunk.patch, HBASE-4112_branch90V1.patch
>
>
>  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)
> >

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4112) Creating table may throw NullPointerException

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067573#comment-13067573 ] 

Hudson commented on HBASE-4112:
-------------------------------

Integrated in HBase-TRUNK #2039 (See [https://builds.apache.org/job/HBase-TRUNK/2039/])
    HBASE-4112  Creating table may throw NullPointerException (Jinchao via Ted Yu)

tedyu : 
Files : 
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
* /hbase/trunk/CHANGES.txt


> Creating table may throw NullPointerException
> ---------------------------------------------
>
>                 Key: HBASE-4112
>                 URL: https://issues.apache.org/jira/browse/HBASE-4112
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.90.3
>            Reporter: gaojinchao
>            Assignee: gaojinchao
>             Fix For: 0.90.4
>
>         Attachments: HBASE-4112_Trunk.patch, HBASE-4112_branch90V1.patch
>
>
>  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)
> >

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4112) Creating table threw NullPointerException

Posted by "gaojinchao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066918#comment-13066918 ] 

gaojinchao commented on HBASE-4112:
-----------------------------------

The reason is META table had some dirty data(eg: column=info:server).  recreating table will throw exception.
I have made a patch and verified, Please review it. Thanks.


All tests passed.

> Creating table threw NullPointerException
> -----------------------------------------
>
>                 Key: HBASE-4112
>                 URL: https://issues.apache.org/jira/browse/HBASE-4112
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.90.3
>            Reporter: gaojinchao
>             Fix For: 0.90.4
>
>         Attachments: HBASE-4112_branch90V1.patch
>
>
>  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)
> >

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4112) Creating table threw NullPointerException

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067439#comment-13067439 ] 

Ted Yu commented on HBASE-4112:
-------------------------------

{code}
+          //If regioninfo is null, skip this row
+          if (null == info) {
+            return true;
{code}
I think false should be returned so that it is consistent with code after the above.

> Creating table threw NullPointerException
> -----------------------------------------
>
>                 Key: HBASE-4112
>                 URL: https://issues.apache.org/jira/browse/HBASE-4112
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.90.3
>            Reporter: gaojinchao
>            Assignee: gaojinchao
>             Fix For: 0.90.4
>
>         Attachments: HBASE-4112_branch90V1.patch
>
>
>  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)
> >

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4112) Creating table threw NullPointerException

Posted by "gaojinchao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067444#comment-13067444 ] 

gaojinchao commented on HBASE-4112:
-----------------------------------

False means finished scan. True mean continue and process the next record.
In this case , True is better.(my test is also)

// the code segment for metaScan. 
      for (Result rr : rrs) {
            if (processedRows >= rowUpperLimit) {
              break done;
            }
            if (!visitor.processRow(rr))
              break done; //exit completely   ////////// 
            processedRows++;
          }

> Creating table threw NullPointerException
> -----------------------------------------
>
>                 Key: HBASE-4112
>                 URL: https://issues.apache.org/jira/browse/HBASE-4112
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.90.3
>            Reporter: gaojinchao
>            Assignee: gaojinchao
>             Fix For: 0.90.4
>
>         Attachments: HBASE-4112_branch90V1.patch
>
>
>  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)
> >

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4112) Creating table threw NullPointerException

Posted by "gaojinchao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067449#comment-13067449 ] 

gaojinchao commented on HBASE-4112:
-----------------------------------

Ok, I try to make a patch for TRUNK.

> Creating table threw NullPointerException
> -----------------------------------------
>
>                 Key: HBASE-4112
>                 URL: https://issues.apache.org/jira/browse/HBASE-4112
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.90.3
>            Reporter: gaojinchao
>            Assignee: gaojinchao
>             Fix For: 0.90.4
>
>         Attachments: HBASE-4112_branch90V1.patch
>
>
>  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)
> >

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4112) Creating table threw NullPointerException

Posted by "Li Pi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Li Pi updated HBASE-4112:
-------------------------

    Assignee: gaojinchao
      Status: Patch Available  (was: Open)

> Creating table threw NullPointerException
> -----------------------------------------
>
>                 Key: HBASE-4112
>                 URL: https://issues.apache.org/jira/browse/HBASE-4112
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.90.3
>            Reporter: gaojinchao
>            Assignee: gaojinchao
>             Fix For: 0.90.4
>
>         Attachments: HBASE-4112_branch90V1.patch
>
>
>  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)
> >

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira