hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Marc Spaggiari (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-8112) Deprecate HTable#batch(final List<? extends Row>)
Date Fri, 13 Sep 2013 21:14:52 GMT

     [ https://issues.apache.org/jira/browse/HBASE-8112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Marc Spaggiari updated HBASE-8112:
---------------------------------------

    Status: Patch Available  (was: Open)

Rebased. I can't really cut the line else I will have the syntax on 2 lines and I'm not sure
javadoc will like it... so should be good to go?
                
> 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
>         Attachments: HBASE-8112-v0-trunk.patch, HBASE-8112-v1-trunk.patch, HBASE-8112-v2-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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message