Package voldemort.store

Examples of voldemort.store.PersistenceFailureException


            transaction = (Transaction) handle.getKeyLock();
            valueEntry.setData(StoreBinaryFormat.toByteArray(handle.getValues()));
            OperationStatus status = getBdbDatabase().put(transaction, keyEntry, valueEntry);

            if(status != OperationStatus.SUCCESS)
                throw new PersistenceFailureException("putAndUnlock operation failed with status: "
                                                      + status);
            succeeded = true;
        } catch(DatabaseException e) {
            this.bdbEnvironmentStats.reportException(e);
            logger.error("Error in putAndUnlock for store " + this.getName(), e);
            throw new PersistenceFailureException(e);
        } finally {
            if(succeeded)
                attemptCommit(transaction);
            else
                attemptAbort(transaction);
View Full Code Here


                    this.cache.add(Pair.create(key, val));
                return true;
            } catch(DatabaseException e) {
                bdbEngine.bdbEnvironmentStats.reportException(e);
                logger.error(e);
                throw new PersistenceFailureException(e);
            }
        }
View Full Code Here

                    current = new ByteArray(keyEntry.getData());
                return true;
            } catch(DatabaseException e) {
                bdbEngine.bdbEnvironmentStats.reportException(e);
                logger.error(e);
                throw new PersistenceFailureException(e);
            }
        }
View Full Code Here

                cursor.setCacheMode(CacheMode.EVICT_BIN);
            return new BdbPartitionEntriesIterator(cursor, partition, this);
        } catch(DatabaseException e) {
            this.bdbEnvironmentStats.reportException(e);
            logger.error(e);
            throw new PersistenceFailureException(e);
        }
    }
View Full Code Here

                cursor.setCacheMode(CacheMode.EVICT_BIN);
            return new BdbPartitionKeysIterator(cursor, partition, this);
        } catch(DatabaseException e) {
            this.bdbEnvironmentStats.reportException(e);
            logger.error(e);
            throw new PersistenceFailureException(e);
        }
    }
View Full Code Here

TOP

Related Classes of voldemort.store.PersistenceFailureException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.