stumbleupon/asynchbase — Issue #18: Serialization issue with MultiAction
Author: ylangisc
Created: 2012-02-21 17:15:19+00:00
State: open

When serializing a MultiAction containing DeleteRequests only I get the exception below. I did not test it with other batchable requests.

```
2012-02-21 09:10:56,691 [Hashed wheel timer #1] ERROR org.hbase.async.RegionClient - Uncaught exception while serializing RPC: MultiAction(batch=[DeleteRequest(table="combined", key=[105, 40, 52, -7, 0, 20, 0, 40, 0, 0, 7, -37, 0, 0, 20, 0, 0, 17], family="", qualifiers=[""], attempt=1, region=RegionInfo(table="combined", region_name="combined,,1329815372745.c2db59a7b6d03d18ba5a6bb5b121e1ea.", stop_key="")), DeleteRequest(table="daily", key=[105, 40, 52, -7, 0, 20, 0, 0, 7, -37, 0, 0, 20], family="", qualifiers=[""], attempt=1, region=RegionInfo(table="daily", region_name="daily,,1329815370711.710c0961e6a4da8db3ac2aac6553bafa.", stop_key=""))])
java.lang.ArrayIndexOutOfBoundsException: -1
at org.jboss.netty.buffer.BigEndianHeapChannelBuffer.setInt(BigEndianHeapChannelBuffer.java:103)
at org.hbase.async.MultiAction.serialize(MultiAction.java:363)
at org.hbase.async.RegionClient.encode(RegionClient.java:997)
at org.hbase.async.RegionClient.sendRpc(RegionClient.java:750)
at org.hbase.async.RegionClient.periodicFlush(RegionClient.java:236)
at org.hbase.async.RegionClient.access$000(RegionClient.java:82)
at org.hbase.async.RegionClient$1.run(RegionClient.java:174)
at org.jboss.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:521)
at org.jboss.netty.util.HashedWheelTimer$Worker.notifyExpiredTimeouts(HashedWheelTimer.java:440)
at org.jboss.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:379)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at java.lang.Thread.run(Thread.java:662)
```