HBASE-453 undeclared throwable exception from HTable.get
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@654256 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eaa03f245b
commit
4aa78f4f28
|
@ -34,6 +34,7 @@ Hbase Change Log
|
|||
HBASE-618 We always compact if 2 files, regardless of the compaction threshold setting
|
||||
HBASE-619 Fix 'logs' link in UI
|
||||
HBASE-478 offlining of table does not run reliably
|
||||
HBASE-453 undeclared throwable exception from HTable.get
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-559 MR example job to count table rows
|
||||
|
|
|
@ -205,13 +205,24 @@ public class HbaseRPC {
|
|||
}
|
||||
|
||||
public Object invoke(Object proxy, Method method, Object[] args)
|
||||
throws Throwable {
|
||||
throws IOException {
|
||||
long startTime = System.currentTimeMillis();
|
||||
HbaseObjectWritable value = (HbaseObjectWritable)
|
||||
client.call(new Invocation(method, args), address, ticket);
|
||||
long callTime = System.currentTimeMillis() - startTime;
|
||||
LOG.debug("Call: " + method.getName() + " " + callTime);
|
||||
return value.get();
|
||||
try {
|
||||
HbaseObjectWritable value = (HbaseObjectWritable)
|
||||
client.call(new Invocation(method, args), address, ticket);
|
||||
long callTime = System.currentTimeMillis() - startTime;
|
||||
LOG.debug("Call: " + method.getName() + " " + callTime);
|
||||
return value.get();
|
||||
} catch (Throwable t) {
|
||||
IOException e;
|
||||
if (t instanceof IOException) {
|
||||
e = (IOException) t;
|
||||
} else {
|
||||
e = new IOException("error during RPC call");
|
||||
e.initCause(t);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue