Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # user >> Batch returned value and exception handling.


Copy link to this message
-
Batch returned value and exception handling.
Hi all,

I did some testing with HTableInterface#batch() for batching Increments and
I was wondering about the returned value Object[].

As I understand (or would expect), the returned value would be:

null - all batch of increments failed.
An object in the array is null / is Exception - that increment has failed.

So I ran some tests and executed a batch of two Increment Objects on two
different row keys, where one of them is valid and the other one has a
family that does not exist.
When calling HTableInterface#batch() I
get RetriesExhaustedWithDetailsException but looking at the counter in
HBase it looks like the valid increment was executed.

Shouldn't I get an Object[2] where one of the objects is null
/ RetriesExhaustedWithDetailsException ?

How can I know # of success/failures in the batch ? What is the "contract"
here ?

Thanks,

Amit.
+
Jean-Marc Spaggiari 2013-03-14, 17:52
+
Amit Sela 2013-03-14, 18:34
+
Jean-Marc Spaggiari 2013-03-14, 18:42
+
Jean-Marc Spaggiari 2013-03-14, 18:55
+
Ted Yu 2013-03-14, 20:37
+
Jean-Marc Spaggiari 2013-03-14, 22:36
+
Ted Yu 2013-03-14, 22:51
+
Jean-Marc Spaggiari 2013-03-15, 00:14
+
Ted Yu 2013-03-15, 00:21
+
Ted Yu 2013-03-14, 22:28
+
Amit Sela 2013-03-14, 19:11
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB