use of org.neo4j.kernel.impl.transaction.log.files.LogTailInformation in project neo4j by neo4j.
the class AbstractLogTailScannerTest method latestLogEmptyStartEntryBeforeAndAfterCheckPointInTheLastButOneLog.
@ParameterizedTest
@MethodSource("params")
void latestLogEmptyStartEntryBeforeAndAfterCheckPointInTheLastButOneLog(int startLogVersion, int endLogVersion) {
// given
long txId = 432;
setupLogFiles(endLogVersion, logFile(start(), commit(1), checkPoint(), start(), commit(txId)), logFile());
// 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 latestLogFileContainingACheckPointAndAStartAfter.
@ParameterizedTest
@MethodSource("params")
void latestLogFileContainingACheckPointAndAStartAfter(int startLogVersion, int endLogVersion) {
// given
long txId = 35;
StartEntry start = start();
setupLogFiles(endLogVersion, logFile(start, commit(txId), checkPoint(start)));
// 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 olderLogFileContainingAStartAndNewerFileContainingACheckPointPointingToAPreviousPositionThanStart.
@ParameterizedTest
@MethodSource("params")
void olderLogFileContainingAStartAndNewerFileContainingACheckPointPointingToAPreviousPositionThanStart(int startLogVersion, int endLogVersion) {
// given
long txId = 123;
StartEntry start = start();
setupLogFiles(endLogVersion, logFile(start, commit(txId)), logFile(checkPoint(start)));
// 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 noLogFilesFound.
@ParameterizedTest
@MethodSource("params")
void noLogFilesFound(int startLogVersion, int endLogVersion) {
// given no files
setupLogFiles(endLogVersion);
// when
LogTailInformation logTailInformation = logFiles.getTailInformation();
// then
assertLatestCheckPoint(false, false, NO_TRANSACTION_ID, true, logTailInformation);
}
Aggregations