hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bieniosek (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-831) committing BatchUpdate with no row should complain
Date Thu, 14 Aug 2008 17:43:44 GMT

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

Michael Bieniosek commented on HBASE-831:
-----------------------------------------

Additionally, the retry logic shouldn't retry NPEs.

> committing BatchUpdate with no row should complain
> --------------------------------------------------
>
>                 Key: HBASE-831
>                 URL: https://issues.apache.org/jira/browse/HBASE-831
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.2.0
>            Reporter: Michael Bieniosek
>            Priority: Minor
>
> Running this code:
> BatchUpdate update = new BatchUpdate();
> update.put(key, value);
> table.commit(update);
> Down in getRegionServer, this triggers an NPE because the row is null (which I saw because
I was running in a debugger); this NPE gets retried somewhere in the bowels of IPC.  Instead,
we should either remove the zero-arg BatchUpdate constructor, or have table.commit throw a
runtimeexception if the row is null.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message