public void putStateful(Put put, HTableInterface table) throws IOException { checkIfReadyToContinue(); try { DominoIface iface = table.coprocessorProxy(DominoIface.class, put.getRow()); DResult res = iface.put(put, startId, true); if (res != null) { throw new IOException(res.getErrMsg()); } addCommit(put.getRow(), false, table); } catch (IOException e) { readyToCommit = false; throw e; } catch (Throwable t) { readyToCommit = false; throw new IOException(t); } }
public void put(Put put, HTableInterface table) throws IOException { checkIfReadyToContinue(); try { DominoIface iface = table.coprocessorProxy(DominoIface.class, put.getRow()); DResult res = iface.put(put, startId, false); if (res != null) { throw new IOException(res.getErrMsg()); } addCommit(put.getRow(), false, table); } catch (IOException e) { readyToCommit = false; throw e; } catch (Throwable t) { readyToCommit = false; throw new IOException(t); } }