use of org.neo4j.kernel.impl.transaction.log.files.LogTailInformation in project neo4j by neo4j.
the class AbstractLogTailScannerTest method twoLogFilesStartAndCommitInDifferentFiles.
@ParameterizedTest
@MethodSource("params")
void twoLogFilesStartAndCommitInDifferentFiles(int startLogVersion, int endLogVersion) {
// given
long txId = 6;
setupLogFiles(endLogVersion, logFile(start()), logFile(commit(txId)));
// when
LogTailInformation logTailInformation = logFiles.getTailInformation();
// then
assertLatestCheckPoint(false, true, 6, false, logTailInformation);
}
use of org.neo4j.kernel.impl.transaction.log.files.LogTailInformation in project neo4j by neo4j.
the class AbstractLogTailScannerTest method twoLogFilesNoCheckPointsOneStartWithoutCommit.
@ParameterizedTest
@MethodSource("params")
void twoLogFilesNoCheckPointsOneStartWithoutCommit(int startLogVersion, int endLogVersion) {
// given
setupLogFiles(endLogVersion, logFile(), logFile(start()));
// when
LogTailInformation logTailInformation = logFiles.getTailInformation();
// then
assertLatestCheckPoint(false, true, NO_TRANSACTION_ID, false, logTailInformation);
}
use of org.neo4j.kernel.impl.transaction.log.files.LogTailInformation in project neo4j by neo4j.
the class AbstractLogTailScannerTest method olderLogFileContainingACheckPointAndNewerFileContainingAStart.
@ParameterizedTest
@MethodSource("params")
void olderLogFileContainingACheckPointAndNewerFileContainingAStart(int startLogVersion, int endLogVersion) {
// given
long txId = 11;
StartEntry start = start();
setupLogFiles(endLogVersion, logFile(checkPoint()), logFile(start, commit(txId)));
// when
LogTailInformation logTailInformation = logFiles.getTailInformation();
// then
assertLatestCheckPoint(true, true, txId, false, logTailInformation);
}
use of org.neo4j.kernel.impl.transaction.log.files.LogTailInformation in project neo4j by neo4j.
the class AbstractLogTailScannerTest method detectMissingLogFiles.
@Test
void detectMissingLogFiles() {
LogTailInformation tailInformation = logFiles.getTailInformation();
assertTrue(tailInformation.logsMissing());
assertTrue(tailInformation.isRecoveryRequired());
}
use of org.neo4j.kernel.impl.transaction.log.files.LogTailInformation in project neo4j by neo4j.
the class AbstractLogTailScannerTest method oneLogFileNoCheckPoints.
@ParameterizedTest
@MethodSource("params")
void oneLogFileNoCheckPoints(int startLogVersion, int endLogVersion) {
// given
setupLogFiles(endLogVersion, logFile());
// when
LogTailInformation logTailInformation = logFiles.getTailInformation();
// then
assertLatestCheckPoint(false, false, NO_TRANSACTION_ID, false, logTailInformation);
assertFalse(logTailInformation.logsMissing());
}
Aggregations