@Override public void update(Procedure<?> proc) { if (LOG.isTraceEnabled()) { LOG.trace("Update " + proc); } ByteSlot slot = acquireSlot(); try { // Serialize the update ProcedureWALFormat.writeUpdate(slot, proc); // Push the transaction data and wait until it is persisted pushData(PushType.UPDATE, slot, proc.getProcId(), null); } catch (IOException e) { // We are not able to serialize the procedure. // this is a code error, and we are not able to go on. LOG.error(HBaseMarkers.FATAL, "Unable to serialize the procedure: " + proc, e); throw new RuntimeException(e); } finally { releaseSlot(slot); } }
@Override public void update(final Procedure proc) { if (LOG.isTraceEnabled()) { LOG.trace("Update " + proc); } ByteSlot slot = acquireSlot(); try { // Serialize the update ProcedureWALFormat.writeUpdate(slot, proc); // Push the transaction data and wait until it is persisted pushData(PushType.UPDATE, slot, proc.getProcId(), null); } catch (IOException e) { // We are not able to serialize the procedure. // this is a code error, and we are not able to go on. LOG.error(HBaseMarkers.FATAL, "Unable to serialize the procedure: " + proc, e); throw new RuntimeException(e); } finally { releaseSlot(slot); } }
@Override public void update(Procedure<?> proc) { if (LOG.isTraceEnabled()) { LOG.trace("Update " + proc); } ByteSlot slot = acquireSlot(); try { // Serialize the update ProcedureWALFormat.writeUpdate(slot, proc); // Push the transaction data and wait until it is persisted pushData(PushType.UPDATE, slot, proc.getProcId(), null); } catch (IOException e) { // We are not able to serialize the procedure. // this is a code error, and we are not able to go on. LOG.error(HBaseMarkers.FATAL, "Unable to serialize the procedure: " + proc, e); throw new RuntimeException(e); } finally { releaseSlot(slot); } }
@Override public void update(final Procedure proc) { if (LOG.isTraceEnabled()) { LOG.trace("Update " + proc); } ByteSlot slot = acquireSlot(); try { // Serialize the update ProcedureWALFormat.writeUpdate(slot, proc); // Push the transaction data and wait until it is persisted pushData(PushType.UPDATE, slot, proc.getProcId(), null); } catch (IOException e) { // We are not able to serialize the procedure. // this is a code error, and we are not able to go on. LOG.fatal("Unable to serialize the procedure: " + proc, e); throw new RuntimeException(e); } finally { releaseSlot(slot); } }