You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2013/12/21 04:44:09 UTC

[jira] [Commented] (HBASE-10221) Results from coprocessor invocations can be null if they fail

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

Ted Yu commented on HBASE-10221:
--------------------------------

Is the check on value against null needed ?
>From http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html#put(K, V) :
{code}
NullPointerException - if the specified key is null and this map uses natural ordering, or its comparator does not permit null keys
{code}

> Results from coprocessor invocations can be null if they fail
> -------------------------------------------------------------
>
>                 Key: HBASE-10221
>                 URL: https://issues.apache.org/jira/browse/HBASE-10221
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.98.0, 0.96.2, 0.99.0
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>             Fix For: 0.98.0, 0.96.2, 0.99.0
>
>         Attachments: 10221.patch
>
>
> In a visibility controller unit test, we fail a VisibilityClient.getAuths call with an AccessDeniedException, leading to a NPE in the client:
> {noformat}
> Caused by: java.lang.NullPointerException
>         at org.apache.hadoop.hbase.util.Bytes.compareTo(Bytes.java:1017)
>         at org.apache.hadoop.hbase.util.Bytes$ByteArrayComparator.compare(Bytes.java:151)
>         at org.apache.hadoop.hbase.util.Bytes$ByteArrayComparator.compare(Bytes.java:140)
>         at java.util.TreeMap.compare(TreeMap.java:1188)
>         at java.util.TreeMap.put(TreeMap.java:531)
>         at java.util.Collections$SynchronizedMap.put(Collections.java:2041)
>         at org.apache.hadoop.hbase.client.HTable$15.update(HTable.java:1486)
>         at org.apache.hadoop.hbase.client.HTable$16.call(HTable.java:1515)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:744)
> {noformat}



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