public class InsufficientLogException extends RestartRequiredException
This exception is typically thrown by the ReplicatedEnvironment constructor when a node has been down for a long period of time and is being started up again. It may also be thrown when a brand new node attempts to become a member of the group and it does not have a sufficiently current set of log files. If the group experiences sustained network connectivity problems, this exception may also be thrown by an active Replica that has been unable to stay in touch with the members of its group for an extended period of time.
In the typical case, application handles the exception by invoking
NetworkRestore.execute(com.sleepycat.je.rep.InsufficientLogException, com.sleepycat.je.rep.NetworkRestoreConfig) to obtain the log files it needs from one of
the members of the replication group. After the log files are obtained, the
node recreates its environment handle and resumes participation as an active
member of the group.
NetworkRestore,
Serialized Form| Constructor and Description |
|---|
InsufficientLogException(Properties restoreProperties,
String helperHosts,
ReplicationNetworkConfig repNetConfig) |
InsufficientLogException(RepImpl repImpl,
VLSN refreshVLSN) |
InsufficientLogException(RepNode repNode,
Set<ReplicationNode> logProviders) |
InsufficientLogException(String message)
For KVS test use only.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ReplicationNode> |
getLogProviders()
Returns the members of the replication group that can serve as candidate
log providers to supply the logs needed by this node.
|
Properties |
getProperties()
For internal use only.
|
RepImpl |
getRepImpl()
For internal use only.
|
String |
toString() |
EnvironmentFailureException |
wrapSelf(String msg)
For internal use only.
|
assertState, assertState, getMessage, getReason, isCorrupted, makeJavaErrorWrapper, promote, setAlreadyThrown, unexpectedException, unexpectedException, unexpectedException, unexpectedException, unexpectedState, unexpectedState, unexpectedState, unexpectedStateaddErrorMessage, addRethrownStackTrace, getVersionHeaderaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic InsufficientLogException(String message)
public InsufficientLogException(RepNode repNode, Set<ReplicationNode> logProviders)
public InsufficientLogException(Properties restoreProperties, String helperHosts, ReplicationNetworkConfig repNetConfig)
restoreProperties - the properties extracted from the
RestoreRequired record in the loghelperHosts - extra helper hosts are derived from those used
to open the environment.repNetConfig - the network configuration to use when contacting log
suppliers for jdb files.public EnvironmentFailureException wrapSelf(String msg)
wrapSelf in class RestartRequiredExceptionpublic Set<ReplicationNode> getLogProviders()
public RepImpl getRepImpl()
public Properties getProperties()
Copyright © 2024. All rights reserved.