Search in sources :

Example 21 with DatabaseException

use of com.sleepycat.je.DatabaseException in project janusgraph by JanusGraph.

the class BerkeleyJETx method commit.

@Override
public synchronized void commit() throws BackendException {
    super.commit();
    if (tx == null)
        return;
    if (log.isTraceEnabled())
        log.trace("{} committed", this.toString(), new TransactionClose(this.toString()));
    try {
        closeOpenIterators();
        tx.commit();
        tx = null;
    } catch (DatabaseException e) {
        throw new PermanentBackendException(e);
    }
}
Also used : PermanentBackendException(org.janusgraph.diskstorage.PermanentBackendException) DatabaseException(com.sleepycat.je.DatabaseException)

Aggregations

DatabaseException (com.sleepycat.je.DatabaseException)21 DatabaseEntry (com.sleepycat.je.DatabaseEntry)5 Environment (com.sleepycat.je.Environment)5 OperationStatus (com.sleepycat.je.OperationStatus)5 Transaction (com.sleepycat.je.Transaction)5 VoldemortException (voldemort.VoldemortException)5 AsyncOperationStatus (voldemort.server.protocol.admin.AsyncOperationStatus)5 PersistenceFailureException (voldemort.store.PersistenceFailureException)5 Versioned (voldemort.versioning.Versioned)3 StatsConfig (com.sleepycat.je.StatsConfig)2 PermanentBackendException (com.thinkaurelius.titan.diskstorage.PermanentBackendException)2 WebURL (edu.uci.ics.crawler4j.url.WebURL)2 Bdb (io.leopard.bdb.Bdb)2 File (java.io.File)2 PermanentBackendException (org.janusgraph.diskstorage.PermanentBackendException)2 CheckpointConfig (com.sleepycat.je.CheckpointConfig)1 Database (com.sleepycat.je.Database)1 DatabaseConfig (com.sleepycat.je.DatabaseConfig)1 EnvironmentConfig (com.sleepycat.je.EnvironmentConfig)1 DuplicateEntryException (com.sleepycat.je.tree.DuplicateEntryException)1