public class SecondaryIntegrityException extends SecondaryReferenceException
The Transaction handle is invalidated as a result of this
exception. In addition, the corrupt index (secondary database) is marked
as corrupt in memory. All subsequent access to the index will throw
SecondaryIntegrityException. To correct the problem, the
application may perform a full restore (an HA NetworkRestore or restore from backup) or rebuild
the corrupt index.
A secondary corruption may also be detected by Btree verification when
performed by the Environment.verify(com.sleepycat.je.VerifyConfig, java.io.PrintStream) method, or by the background verifier
(if EnvironmentConfig.VERIFY_SECONDARIES is set to true).
Some possible causes of a secondary integrity exception are listed
below. Note that only the first item -- the use of a non-transactional
store -- is applicable when using the DPL.
All other items below do not apply to the use of the DPL, because the DPL
ensures that secondary databases are configured and managed correctly.
Database handle, or by truncating or
removing primary database without also truncating or removing all secondary
databases. When the DPL is not used, the application is responsible for
managing associated databases correctly.
| Constructor and Description |
|---|
SecondaryIntegrityException(Database secDb,
Locker locker,
String message,
String secDbName,
String priDbName,
DatabaseEntry secKey,
DatabaseEntry priKey,
long priLsn,
long expirationTime,
ExtinctionFilter.ExtinctionStatus extinctionStatus)
For internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
OperationFailureException |
wrapSelf(String msg)
For internal use only.
|
getExpirationTime, getPrimaryDatabaseName, getPrimaryKey, getPrimaryLsn, getSecondaryDatabaseName, getSecondaryKeyisReplicaWriteaddErrorMessage, addRethrownStackTrace, getMessage, getVersionHeaderaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic SecondaryIntegrityException(Database secDb, Locker locker, String message, String secDbName, String priDbName, DatabaseEntry secKey, DatabaseEntry priKey, long priLsn, long expirationTime, ExtinctionFilter.ExtinctionStatus extinctionStatus)
public OperationFailureException wrapSelf(String msg)
wrapSelf in class OperationFailureExceptionCopyright © 2024. All rights reserved.