lastWriteNanos = delete.startTime(); final DeletionStrategy plan = deletionStrategyForOperation(delete); delete.startTime(), deleteResult.getFailure().toString()); location = innerNoOp(noOp).getTranslogLocation(); } else { localCheckpointTracker.markSeqNoAsCompleted(deleteResult.getSeqNo()); deleteResult.setTook(System.nanoTime() - delete.startTime()); deleteResult.freeze(); } catch (RuntimeException | IOException e) {
versionType, template.origin(), template.startTime());
lastWriteNanos = delete.startTime(); final DeletionStrategy plan = deletionStrategyForOperation(delete); delete.startTime(), deleteResult.getFailure().toString()); location = innerNoOp(noOp).getTranslogLocation(); } else { localCheckpointTracker.markSeqNoAsCompleted(deleteResult.getSeqNo()); deleteResult.setTook(System.nanoTime() - delete.startTime()); deleteResult.freeze(); } catch (RuntimeException | IOException e) {
public void postDelete(Engine.Delete delete) { long took = delete.endTime() - delete.startTime(); totalStats.deleteMetric.inc(took); totalStats.deleteCurrent.dec(); StatsHolder typeStats = typeStats(delete.type()); typeStats.deleteMetric.inc(took); typeStats.deleteCurrent.dec(); for (IndexingOperationListener listener : listeners) { try { listener.postDelete(delete); } catch (Exception e) { logger.warn("postDelete listener [{}] failed", e, listener); } } }
public Delete(Delete template, VersionType versionType) { this(template.type(), template.id(), template.uid(), template.version(), versionType, template.origin(), template.startTime(), template.found()); }
public Delete(Delete template, VersionType versionType) { this(template.type(), template.id(), template.uid(), template.version(), versionType, template.origin(), template.startTime()); }
public Delete(Delete template, VersionType versionType) { this(template.type(), template.id(), template.uid(), template.seqNo(), template.primaryTerm(), template.version(), versionType, template.origin(), template.startTime()); }
public Delete(Delete template, VersionType versionType) { this(template.type(), template.id(), template.uid(), template.seqNo(), template.primaryTerm(), template.version(), versionType, template.origin(), template.startTime(), UNASSIGNED_SEQ_NO, 0); }