[
https://issues.apache.org/jira/browse/HBASE-8112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13852590#comment-13852590
]
Hudson commented on HBASE-8112:
-------------------------------
FAILURE: Integrated in HBase-0.98-on-Hadoop-1.1 #19 (See
[https://builds.apache.org/job/HBase-0.98-on-Hadoop-1.1/19/])
HBASE-8112 Deprecate HTable#batch(final List<? extends Row>) (stack: rev
1552152)
*
/hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java
*
/hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTableInterface.java
*
/hbase/branches/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java
*
/hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java
> Deprecate HTable#batch(final List<? extends Row>)
> -------------------------------------------------
>
> Key: HBASE-8112
> URL: https://issues.apache.org/jira/browse/HBASE-8112
> Project: HBase
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Jean-Marc Spaggiari
> Priority: Minor
> Fix For: 0.98.0, 0.99.0
>
> Attachments: HBASE-8112-v0-trunk.patch, HBASE-8112-v1-trunk.patch,
> HBASE-8112-v2-trunk.patch, HBASE-8112-v3-trunk.patch
>
>
> This was brought up by Amit's inquiry on mailing list, entitled 'Batch
> returned value and exception handling'
> Here is his sample code:
> {code}
> Object[] res = null;
> try {
> res = table.batch(batch);
> } catch (RetriesExhaustedWithDetailsException
> retriesExhaustedWithDetailsException) {
> retriesExhaustedWithDetailsException.printStackTrace();
> }
> if (res == null) {
> System.out.println("No results - returned null.");
> }
> {code}
> When RetriesExhaustedWithDetailsException was thrown from batch() call,
> variable res carried value of null.
> Meaning user wouldn't get partial result along with the exception.
> We should deprecate {code}HTable#batch(final List<? extends Row>){code} and
> refer to the following method:
> void batch(final List<?extends Row> actions, final Object[] results) throws
> IOException, InterruptedException;
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)