Logging message was missing a space here, fix that up.
Change-Id: I6523e43601c447f5fccb40d1bc901da45060fd81
JIRA: CONTROLLER-1913
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
- public boolean captureWithForcedTrim(ReplicatedLogEntry lastLogEntry, long replicatedToAllIndex) {
+ public boolean captureWithForcedTrim(final ReplicatedLogEntry lastLogEntry, final long replicatedToAllIndex) {
return currentState.captureWithForcedTrim(lastLogEntry, replicatedToAllIndex);
}
return currentState.captureWithForcedTrim(lastLogEntry, replicatedToAllIndex);
}
- public boolean captureWithForcedTrim(ReplicatedLogEntry lastLogEntry, long replicatedToAllIndex) {
+ public boolean captureWithForcedTrim(final ReplicatedLogEntry lastLogEntry, final long replicatedToAllIndex) {
log.debug("captureWithForcedTrim should not be called in state {}", this);
return false;
}
log.debug("captureWithForcedTrim should not be called in state {}", this);
return false;
}
@SuppressWarnings("checkstyle:IllegalCatch")
private boolean capture(final ReplicatedLogEntry lastLogEntry, final long replicatedToAllIndex,
@SuppressWarnings("checkstyle:IllegalCatch")
private boolean capture(final ReplicatedLogEntry lastLogEntry, final long replicatedToAllIndex,
- final String targetFollower, boolean mandatoryTrim) {
+ final String targetFollower, final boolean mandatoryTrim) {
captureSnapshot = newCaptureSnapshot(lastLogEntry, replicatedToAllIndex, mandatoryTrim);
OutputStream installSnapshotStream = null;
captureSnapshot = newCaptureSnapshot(lastLogEntry, replicatedToAllIndex, mandatoryTrim);
OutputStream installSnapshotStream = null;
- public boolean captureWithForcedTrim(ReplicatedLogEntry lastLogEntry, long replicatedToAllIndex) {
+ public boolean captureWithForcedTrim(final ReplicatedLogEntry lastLogEntry, final long replicatedToAllIndex) {
return capture(lastLogEntry, replicatedToAllIndex, null, true);
}
return capture(lastLogEntry, replicatedToAllIndex, null, true);
}
context.getConfigParams().getSnapshotBatchCount(),
captureSnapshot.getLastAppliedIndex());
} else {
context.getConfigParams().getSnapshotBatchCount(),
captureSnapshot.getLastAppliedIndex());
} else {
- log.debug("{}: user triggered or root overwrite snapshot encountered, trimming log up to"
+ log.debug("{}: user triggered or root overwrite snapshot encountered, trimming log up to "
+ "last applied index {}", context.getId(), captureSnapshot.getLastAppliedIndex());
}
}
+ "last applied index {}", context.getId(), captureSnapshot.getLastAppliedIndex());
}
}