Berkeley DB Java Edition
version 5.0.34

com.sleepycat.je.rep
Class ReplicaWriteException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sleepycat.je.DatabaseException
                  extended by com.sleepycat.je.OperationFailureException
                      extended by com.sleepycat.je.rep.StateChangeException
                          extended by com.sleepycat.je.rep.ReplicaWriteException
All Implemented Interfaces:
Serializable

public class ReplicaWriteException
extends StateChangeException

This exception indicates that an update operation was attempted while in the ReplicatedEnvironment.State.REPLICA state. The transaction is marked as being invalid.

The exception typically indicates an error in the application logic. In some extremely rare cases it could be the result of a transition of the node from Master to Replica, while a transaction was in progress.

The application must abort the current transaction and redirect all subsequent update operations to the Master.

See Also:
Serialized Form

Method Summary
 
Methods inherited from class com.sleepycat.je.rep.StateChangeException
getEvent
 
Methods inherited from class com.sleepycat.je.DatabaseException
getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 


Berkeley DB Java Edition
version 5.0.34

Copyright (c) 2004-2011 Oracle. All rights reserved.