private void delete(long[] procIds) { if (LOG.isTraceEnabled()) { LOG.trace("Delete " + Arrays.toString(procIds)); } final ByteSlot slot = acquireSlot(); try { // Serialize the delete for (int i = 0; i < procIds.length; ++i) { ProcedureWALFormat.writeDelete(slot, procIds[i]); } // Push the transaction data and wait until it is persisted pushData(PushType.DELETE, slot, Procedure.NO_PROC_ID, procIds); } 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("Unable to serialize the procedures: " + Arrays.toString(procIds), e); throw new RuntimeException(e); } finally { releaseSlot(slot); } }
@Override public void delete(long procId) { LOG.trace("Delete {}", procId); ByteSlot slot = acquireSlot(); try { // Serialize the delete ProcedureWALFormat.writeDelete(slot, procId); // Push the transaction data and wait until it is persisted pushData(PushType.DELETE, slot, procId, 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: " + procId, e); throw new RuntimeException(e); } finally { releaseSlot(slot); } }
@Override public void delete(Procedure<?> proc, long[] subProcIds) { assert proc != null : "expected a non-null procedure"; assert subProcIds != null && subProcIds.length > 0 : "expected subProcIds"; if (LOG.isTraceEnabled()) { LOG.trace("Update " + proc + " and Delete " + Arrays.toString(subProcIds)); } ByteSlot slot = acquireSlot(); try { // Serialize the delete ProcedureWALFormat.writeDelete(slot, proc, subProcIds); // Push the transaction data and wait until it is persisted pushData(PushType.DELETE, slot, proc.getProcId(), subProcIds); } 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); } }
private void delete(final long[] procIds) { if (LOG.isTraceEnabled()) { LOG.trace("Delete " + Arrays.toString(procIds)); } final ByteSlot slot = acquireSlot(); try { // Serialize the delete for (int i = 0; i < procIds.length; ++i) { ProcedureWALFormat.writeDelete(slot, procIds[i]); } // Push the transaction data and wait until it is persisted pushData(PushType.DELETE, slot, Procedure.NO_PROC_ID, procIds); } 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("Unable to serialize the procedures: " + Arrays.toString(procIds), e); throw new RuntimeException(e); } finally { releaseSlot(slot); } }
private void delete(long[] procIds) { if (LOG.isTraceEnabled()) { LOG.trace("Delete " + Arrays.toString(procIds)); } final ByteSlot slot = acquireSlot(); try { // Serialize the delete for (int i = 0; i < procIds.length; ++i) { ProcedureWALFormat.writeDelete(slot, procIds[i]); } // Push the transaction data and wait until it is persisted pushData(PushType.DELETE, slot, Procedure.NO_PROC_ID, procIds); } 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("Unable to serialize the procedures: " + Arrays.toString(procIds), e); throw new RuntimeException(e); } finally { releaseSlot(slot); } }
@Override public void delete(final long procId) { if (LOG.isTraceEnabled()) { LOG.trace("Delete " + procId); } ByteSlot slot = acquireSlot(); try { // Serialize the delete ProcedureWALFormat.writeDelete(slot, procId); // Push the transaction data and wait until it is persisted pushData(PushType.DELETE, slot, procId, 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: " + procId, e); throw new RuntimeException(e); } finally { releaseSlot(slot); } }
@Override public void delete(long procId) { LOG.trace("Delete {}", procId); ByteSlot slot = acquireSlot(); try { // Serialize the delete ProcedureWALFormat.writeDelete(slot, procId); // Push the transaction data and wait until it is persisted pushData(PushType.DELETE, slot, procId, 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: " + procId, e); throw new RuntimeException(e); } finally { releaseSlot(slot); } }
@Override public void delete(final Procedure proc, final long[] subProcIds) { assert proc != null : "expected a non-null procedure"; assert subProcIds != null && subProcIds.length > 0 : "expected subProcIds"; if (LOG.isTraceEnabled()) { LOG.trace("Update " + proc + " and Delete " + Arrays.toString(subProcIds)); } ByteSlot slot = acquireSlot(); try { // Serialize the delete ProcedureWALFormat.writeDelete(slot, proc, subProcIds); // Push the transaction data and wait until it is persisted pushData(PushType.DELETE, slot, proc.getProcId(), subProcIds); } 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 delete(Procedure<?> proc, long[] subProcIds) { assert proc != null : "expected a non-null procedure"; assert subProcIds != null && subProcIds.length > 0 : "expected subProcIds"; if (LOG.isTraceEnabled()) { LOG.trace("Update " + proc + " and Delete " + Arrays.toString(subProcIds)); } ByteSlot slot = acquireSlot(); try { // Serialize the delete ProcedureWALFormat.writeDelete(slot, proc, subProcIds); // Push the transaction data and wait until it is persisted pushData(PushType.DELETE, slot, proc.getProcId(), subProcIds); } 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 delete(final long procId) { if (LOG.isTraceEnabled()) { LOG.trace("Delete " + procId); } ByteSlot slot = acquireSlot(); try { // Serialize the delete ProcedureWALFormat.writeDelete(slot, procId); // Push the transaction data and wait until it is persisted pushData(PushType.DELETE, slot, procId, 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: " + procId, e); throw new RuntimeException(e); } finally { releaseSlot(slot); } }