Package com.sleepycat.je

Examples of com.sleepycat.je.RunRecoveryException


  if (errors.length() > 0 &&
      savedInvalidatingException == null) {

      /* Don't whine again if we've already whined. */
      throw new RunRecoveryException(this, errors.toString());
  }
    }
View Full Code Here


                /*
                 * If we can't get a write channel, we need to
                 * go into RunRecovery state.
                 */
                throw new RunRecoveryException(envImpl, e);
            }
        }
View Full Code Here

                    /*
                     * The channel should never be closed. It may be
                     * closed because of an interrupt received by
                     * another thread. See SR [#10463]
                     */
                    throw new RunRecoveryException
      (envImpl,
       "Channel closed, may be due to thread interrupt",
       e);
                }
           
View Full Code Here

                while (true) {

                    try {
                        wait(fsyncTimeout);
                    } catch (InterruptedException e) {
                        throw new RunRecoveryException(envImpl,
                           "Unexpected interrupt while waiting for fsync", e);
                    }

                    /*
                     * This thread was awoken either by a timeout, by a notify,
View Full Code Here

                while (doWait) {
                    locker.setWaitingFor(result.useLock);
                    try {
                        locker.wait(timeout);
                    } catch (InterruptedException IE) {
      throw new RunRecoveryException(envImpl, IE);
                    }

                    boolean lockerTimedOut = locker.isTimedOut();
                    long now = System.currentTimeMillis();
                    boolean thisLockTimedOut =
View Full Code Here

            /*
             * The channel should never be closed. It may be closed because
             * of an interrupt received by another thread. See SR [#10463]
             */
            throw new RunRecoveryException
    (envImpl, "Channel closed, may be due to thread interrupt", e);
        } catch (IOException e) {
            /* Possibly an out of disk exception. */
            throw new RunRecoveryException
    (envImpl, "IOException caught: " + e);
        }

        if (bytesWritten != entrySize) {
            throw new LogException
View Full Code Here

                /*
                 * The file should never be closed. It may be closed because
                 * of an interrupt received by another thread. See SR [#10463].
                 */
                throw new RunRecoveryException
        (envImpl, "File closed, may be due to thread interrupt",
         e);
            } catch (IOException IOE) {

    /*
 
View Full Code Here

                data.get(a, 0, len);
                ByteBuffer buf = ByteBuffer.wrap(a);
                writeToFile(file, buf, destOffset);
            }
            runRecoveryExceptionThrown = true;
    throw new RunRecoveryException
        (envImpl, "Randomly generated for testing");
        }
    }
View Full Code Here

                }
            }
            owner.nAcquires += 1;
            assert noteLatch(); // intentional side effect;
  } catch (InterruptedException e) {
      throw new RunRecoveryException(env, e);
  } finally {
      assert EnvironmentImpl.maybeForceYield();
  }
    }
View Full Code Here

            }
            owner.nAcquires += 1;
            stats.nAcquireSharedSuccessful++;
            assert noteLatch(); // intentional side effect;
  } catch (InterruptedException e) {
      throw new RunRecoveryException(env, e);
  } finally {
      assert EnvironmentImpl.maybeForceYield();
  }
    }
View Full Code Here

TOP

Related Classes of com.sleepycat.je.RunRecoveryException

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.