use of org.neo4j.kernel.impl.transaction.log.checkpoint.SimpleTriggerInfo in project neo4j by neo4j.
the class IndexRecoveryIT method rotateLogsAndCheckPoint.
private void rotateLogsAndCheckPoint() throws IOException {
db.getDependencyResolver().resolveDependency(LogRotation.class).rotateLogFile();
db.getDependencyResolver().resolveDependency(CheckPointer.class).forceCheckPoint(new SimpleTriggerInfo("test"));
}
use of org.neo4j.kernel.impl.transaction.log.checkpoint.SimpleTriggerInfo in project neo4j by neo4j.
the class PartialTransactionFailureIT method createRelationship.
private Runnable createRelationship(final EmbeddedGraphDatabase db, final Node x, final Node y, final CountDownLatch latch) {
return new Runnable() {
@Override
public void run() {
try (Transaction tx = db.beginTx()) {
x.createRelationshipTo(y, RelationshipType.withName("r"));
tx.success();
latch.await();
db.getDependencyResolver().resolveDependency(LogRotation.class).rotateLogFile();
db.getDependencyResolver().resolveDependency(CheckPointer.class).forceCheckPoint(new SimpleTriggerInfo("test"));
} catch (Exception ignore) {
// We don't care about our transactions failing, as long as we
// can recover our database to a consistent state.
}
}
};
}
use of org.neo4j.kernel.impl.transaction.log.checkpoint.SimpleTriggerInfo in project neo4j by neo4j.
the class TestLogPruning method checkPoint.
private void checkPoint() throws IOException {
TriggerInfo triggerInfo = new SimpleTriggerInfo("test");
db.getDependencyResolver().resolveDependency(CheckPointer.class).forceCheckPoint(triggerInfo);
}
use of org.neo4j.kernel.impl.transaction.log.checkpoint.SimpleTriggerInfo in project neo4j by neo4j.
the class UniqueIndexRecoveryTests method rotateLogAndCheckPoint.
private void rotateLogAndCheckPoint() throws IOException {
db.getDependencyResolver().resolveDependency(LogRotation.class).rotateLogFile();
db.getDependencyResolver().resolveDependency(CheckPointer.class).forceCheckPoint(new SimpleTriggerInfo("test"));
}
use of org.neo4j.kernel.impl.transaction.log.checkpoint.SimpleTriggerInfo in project neo4j by neo4j.
the class LuceneIndexRecoveryIT method rotateLogsAndCheckPoint.
private void rotateLogsAndCheckPoint() throws IOException {
db.getDependencyResolver().resolveDependency(LogRotation.class).rotateLogFile();
db.getDependencyResolver().resolveDependency(CheckPointer.class).forceCheckPoint(new SimpleTriggerInfo("test"));
}
Aggregations