| | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | |
| | | import static org.opends.server.loggers.ErrorLogger.logError; |
| | | import static org.opends.server.loggers.debug.DebugLogger.*; |
| | | import org.opends.server.loggers.debug.DebugTracer; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | |
| | | |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | |
| | | */ |
| | | public class VerifyJob |
| | | { |
| | | /** |
| | | * The tracer object for the debug logger. |
| | | */ |
| | | private static final DebugTracer TRACER = getTracer(); |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | |
| | | /** |
| | |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("Malformed id2entry ID %s.%n", |
| | | logger.trace("Malformed id2entry ID %s.%n", |
| | | StaticUtils.bytesToHex(key.getData())); |
| | | } |
| | | continue; |
| | |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("Malformed id2entry record for ID %d:%n%s%n", |
| | | logger.trace("Malformed id2entry record for ID %d:%n%s%n", |
| | | entryID.longValue(), |
| | | StaticUtils.bytesToHex(data.getData())); |
| | | } |
| | |
| | | if (keyCount != storedEntryCount) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("The stored entry count in id2entry (%d) does " + |
| | | logger.trace("The stored entry count in id2entry (%d) does " + |
| | | "not agree with the actual number of entry " + |
| | | "records found (%d).%n", storedEntryCount, keyCount); |
| | | } |
| | |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("File dn2id has malformed ID for DN <%s>:%n%s%n", |
| | | logger.trace("File dn2id has malformed ID for DN <%s>:%n%s%n", |
| | | new String(key.getData()), |
| | | StaticUtils.bytesToHex(data.getData())); |
| | | } |
| | |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | } |
| | | logger.traceException(e); |
| | | continue; |
| | | } |
| | | |
| | | if (entry == null) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("File dn2id has DN <%s> referencing unknown " + |
| | | logger.trace("File dn2id has DN <%s> referencing unknown " + |
| | | "ID %d%n", new String(key.getData()), entryID.longValue()); |
| | | } |
| | | } |
| | |
| | | key.getData())) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("File dn2id has DN <%s> referencing entry " + |
| | | logger.trace("File dn2id has DN <%s> referencing entry " + |
| | | "with wrong DN <%s>%n", new String(key.getData()), |
| | | entry.getName().toNormalizedString()); |
| | | } |
| | |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("File id2children has malformed ID %s%n", |
| | | logger.trace("File id2children has malformed ID %s%n", |
| | | StaticUtils.bytesToHex(key.getData())); |
| | | } |
| | | continue; |
| | |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("File id2children has malformed ID list " + |
| | | logger.trace("File id2children has malformed ID list " + |
| | | "for ID %s:%n%s%n", entryID, |
| | | StaticUtils.bytesToHex(data.getData())); |
| | | } |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | } |
| | | logger.traceException(e); |
| | | errorCount++; |
| | | continue; |
| | | } |
| | |
| | | if (entry == null) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("File id2children has unknown ID %d%n", |
| | | logger.trace("File id2children has unknown ID %d%n", |
| | | entryID.longValue()); |
| | | } |
| | | continue; |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | } |
| | | logger.traceException(e); |
| | | errorCount++; |
| | | continue; |
| | | } |
| | |
| | | if (childEntry == null) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("File id2children has ID %d referencing " + |
| | | logger.trace("File id2children has ID %d referencing " + |
| | | "unknown ID %d%n", entryID.longValue(), id.longValue()); |
| | | } |
| | | continue; |
| | |
| | | entry.getName().size() + 1) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("File id2children has ID %d with DN <%s> " + |
| | | logger.trace("File id2children has ID %d with DN <%s> " + |
| | | "referencing ID %d with non-child DN <%s>%n", |
| | | entryID.longValue(), entry.getName().toString(), |
| | | id.longValue(), childEntry.getName().toString()); |
| | |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("File id2subtree has malformed ID %s%n", |
| | | logger.trace("File id2subtree has malformed ID %s%n", |
| | | StaticUtils.bytesToHex(key.getData())); |
| | | } |
| | | continue; |
| | |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("File id2subtree has malformed ID list " + |
| | | logger.trace("File id2subtree has malformed ID list " + |
| | | "for ID %s:%n%s%n", entryID, |
| | | StaticUtils.bytesToHex(data.getData())); |
| | | } |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | } |
| | | logger.traceException(e); |
| | | errorCount++; |
| | | continue; |
| | | } |
| | |
| | | if (entry == null) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("File id2subtree has unknown ID %d%n", |
| | | logger.trace("File id2subtree has unknown ID %d%n", |
| | | entryID.longValue()); |
| | | } |
| | | continue; |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | } |
| | | logger.traceException(e); |
| | | errorCount++; |
| | | continue; |
| | | } |
| | |
| | | if (subordEntry == null) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("File id2subtree has ID %d referencing " + |
| | | logger.trace("File id2subtree has ID %d referencing " + |
| | | "unknown ID %d%n", entryID.longValue(), id.longValue()); |
| | | } |
| | | continue; |
| | |
| | | if (!subordEntry.getName().isDescendantOf(entry.getName())) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("File id2subtree has ID %d with DN <%s> " + |
| | | logger.trace("File id2subtree has ID %d with DN <%s> " + |
| | | "referencing ID %d with non-subordinate " + |
| | | "DN <%s>%n", |
| | | entryID.longValue(), entry.getName().toString(), |
| | |
| | | if(lastValues != null && lastValues.compareTo(values) >= 1) |
| | | { |
| | | // Make sure the values is larger then the previous one. |
| | | if(debugEnabled()) |
| | | if(logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("Values %s and %s are incorrectly ordered", |
| | | logger.trace("Values %s and %s are incorrectly ordered", |
| | | lastValues, values, keyDump(vlvIndex, |
| | | sortValuesSet.getKeySortValues())); |
| | | } |
| | |
| | | values.getValues()); |
| | | if(!Arrays.equals(key.getData(), encodedKey)) |
| | | { |
| | | if(debugEnabled()) |
| | | if(logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("Incorrect key for SortValuesSet in VLV " + |
| | | logger.trace("Incorrect key for SortValuesSet in VLV " + |
| | | "index %s. Last values bytes %s, Key bytes %s", |
| | | vlvIndex.getName(), encodedKey, key); |
| | | } |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | } |
| | | logger.traceException(e); |
| | | errorCount++; |
| | | continue; |
| | | } |
| | |
| | | if (entry == null) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("Reference to unknown ID %d%n%s", |
| | | logger.trace("Reference to unknown ID %d%n%s", |
| | | id.longValue(), |
| | | keyDump(vlvIndex, |
| | | sortValuesSet.getKeySortValues())); |
| | |
| | | if(entryValues.compareTo(values) != 0) |
| | | { |
| | | errorCount++; |
| | | if(debugEnabled()) |
| | | if(logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("Reference to entry ID %d " + |
| | | logger.trace("Reference to entry ID %d " + |
| | | "which does not match the values%n%s", |
| | | id.longValue(), |
| | | keyDump(vlvIndex, |
| | |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("Malformed ID list: %s%n%s", |
| | | logger.trace("Malformed ID list: %s%n%s", |
| | | StaticUtils.bytesToHex(data.getData()), |
| | | keyDump(index, key.getData())); |
| | | } |
| | |
| | | { |
| | | if (prevID != null && id.equals(prevID)) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("Duplicate reference to ID %d%n%s", |
| | | logger.trace("Duplicate reference to ID %d%n%s", |
| | | id.longValue(), keyDump(index, key.getData())); |
| | | } |
| | | } |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | } |
| | | logger.traceException(e); |
| | | errorCount++; |
| | | continue; |
| | | } |
| | |
| | | if (entry == null) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("Reference to unknown ID %d%n%s", |
| | | logger.trace("Reference to unknown ID %d%n%s", |
| | | id.longValue(), keyDump(index, key.getData())); |
| | | } |
| | | continue; |
| | |
| | | if (!foundMatchingKey.get()) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("Reference to entry " |
| | | logger.trace("Reference to entry " |
| | | + "<%s> which does not match the value%n%s", |
| | | entry.getName(), |
| | | keyDump(index, value)); |
| | |
| | | EntryID id = dn2id.get(null, dn, LockMode.DEFAULT); |
| | | if (id == null) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("File dn2id is missing key %s.%n", |
| | | logger.trace("File dn2id is missing key %s.%n", |
| | | dn.toNormalizedString()); |
| | | } |
| | | errorCount++; |
| | | } |
| | | else if (!id.equals(entryID)) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("File dn2id has ID %d instead of %d for key %s.%n", |
| | | logger.trace("File dn2id has ID %d instead of %d for key %s.%n", |
| | | id.longValue(), |
| | | entryID.longValue(), |
| | | dn.toNormalizedString()); |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("File dn2id has error reading key %s: %s.%n", |
| | | logger.trace("File dn2id has error reading key %s: %s.%n", |
| | | dn.toNormalizedString(), |
| | | e.getMessage()); |
| | | } |
| | |
| | | EntryID id = dn2id.get(null, parentDN, LockMode.DEFAULT); |
| | | if (id == null) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("File dn2id is missing key %s.%n", |
| | | logger.trace("File dn2id is missing key %s.%n", |
| | | parentDN.toNormalizedString()); |
| | | } |
| | | errorCount++; |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("File dn2id has error reading key %s: %s.%n", |
| | | logger.trace("File dn2id has error reading key %s: %s.%n", |
| | | parentDN.toNormalizedString(), |
| | | e.getMessage()); |
| | | } |
| | |
| | | parentID = dn2id.get(null, parentDN, LockMode.DEFAULT); |
| | | if (parentID == null) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("File dn2id is missing key %s.%n", |
| | | logger.trace("File dn2id is missing key %s.%n", |
| | | parentDN.toNormalizedString()); |
| | | } |
| | | errorCount++; |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("File dn2id has error reading key %s: %s.", |
| | | logger.trace("File dn2id has error reading key %s: %s.", |
| | | parentDN.toNormalizedString(), |
| | | e.getMessage()); |
| | | } |
| | |
| | | cr = id2c.containsID(null, parentID.getDatabaseEntry(), entryID); |
| | | if (cr == ConditionResult.FALSE) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("File id2children is missing ID %d " + |
| | | logger.trace("File id2children is missing ID %d " + |
| | | "for key %d.%n", |
| | | entryID.longValue(), parentID.longValue()); |
| | | } |
| | |
| | | } |
| | | catch (DatabaseException e) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("File id2children has error reading key %d: %s.", |
| | | logger.trace("File id2children has error reading key %d: %s.", |
| | | parentID.longValue(), e.getMessage()); |
| | | } |
| | | errorCount++; |
| | |
| | | id = dn2id.get(null, dn, LockMode.DEFAULT); |
| | | if (id == null) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("File dn2id is missing key %s.%n", |
| | | logger.trace("File dn2id is missing key %s.%n", |
| | | dn.toNormalizedString()); |
| | | } |
| | | errorCount++; |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("File dn2id has error reading key %s: %s.%n", |
| | | logger.trace("File dn2id has error reading key %s: %s.%n", |
| | | dn.toNormalizedString(), |
| | | e.getMessage()); |
| | | } |
| | |
| | | cr = id2s.containsID(null, id.getDatabaseEntry(), entryID); |
| | | if (cr == ConditionResult.FALSE) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("File id2subtree is missing ID %d " + |
| | | logger.trace("File id2subtree is missing ID %d " + |
| | | "for key %d.%n", |
| | | entryID.longValue(), id.longValue()); |
| | | } |
| | |
| | | } |
| | | catch (DatabaseException e) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("File id2subtree has error reading key %d: %s.%n", |
| | | logger.trace("File id2subtree has error reading key %d: %s.%n", |
| | | id.longValue(), e.getMessage()); |
| | | } |
| | | errorCount++; |
| | |
| | | } |
| | | catch (DirectoryException e) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("Error normalizing values of attribute %s in " + |
| | | logger.trace("Error normalizing values of attribute %s in " + |
| | | "entry <%s>: %s.%n", |
| | | attrIndex.getAttributeType().toString(), |
| | | entry.getName().toString(), |
| | |
| | | if(!vlvIndex.containsValues(null, entryID.longValue(), |
| | | vlvIndex.getSortValues(entry))) |
| | | { |
| | | if(debugEnabled()) |
| | | if(logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("Missing entry %s in VLV index %s", |
| | | logger.trace("Missing entry %s in VLV index %s", |
| | | entry.getName().toString(), |
| | | vlvIndex.getName()); |
| | | } |
| | |
| | | } |
| | | catch (DirectoryException e) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("Error checking entry %s against filter or " + |
| | | logger.trace("Error checking entry %s against filter or " + |
| | | "base DN for VLV index %s: %s", |
| | | entry.getName().toString(), |
| | | vlvIndex.getName(), |
| | |
| | | } |
| | | catch (DatabaseException e) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("Error reading VLV index %s for entry %s: %s", |
| | | logger.trace("Error reading VLV index %s for entry %s: %s", |
| | | vlvIndex.getName(), |
| | | entry.getName().toString(), |
| | | StaticUtils.getBacktrace(e)); |
| | |
| | | } |
| | | catch (JebException e) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("Error reading VLV index %s for entry %s: %s", |
| | | logger.trace("Error reading VLV index %s for entry %s: %s", |
| | | vlvIndex.getName(), |
| | | entry.getName().toString(), |
| | | StaticUtils.getBacktrace(e)); |
| | |
| | | cr = presenceIndex.containsID(txn, presenceKey, entryID); |
| | | if (cr == ConditionResult.FALSE) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("Missing ID %d%n%s", |
| | | logger.trace("Missing ID %d%n%s", |
| | | entryID.longValue(), |
| | | keyDump(presenceIndex, presenceKey.getData())); |
| | | } |
| | |
| | | } |
| | | catch (DatabaseException e) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("Error reading database: %s%n%s", |
| | | logger.trace("Error reading database: %s%n%s", |
| | | e.getMessage(), |
| | | keyDump(presenceIndex, presenceKey.getData())); |
| | | } |
| | |
| | | cr = equalityIndex.containsID(txn, key, entryID); |
| | | if (cr == ConditionResult.FALSE) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("Missing ID %d%n%s", |
| | | logger.trace("Missing ID %d%n%s", |
| | | entryID.longValue(), |
| | | keyDump(equalityIndex, normalizedBytes)); |
| | | } |
| | |
| | | } |
| | | catch (DatabaseException e) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("Error reading database: %s%n%s", |
| | | logger.trace("Error reading database: %s%n%s", |
| | | e.getMessage(), |
| | | keyDump(equalityIndex, normalizedBytes)); |
| | | } |
| | |
| | | cr = substringIndex.containsID(txn, key, entryID); |
| | | if (cr == ConditionResult.FALSE) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("Missing ID %d%n%s", |
| | | logger.trace("Missing ID %d%n%s", |
| | | entryID.longValue(), |
| | | keyDump(substringIndex, key.getData())); |
| | | } |
| | |
| | | } |
| | | catch (DatabaseException e) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("Error reading database: %s%n%s", |
| | | logger.trace("Error reading database: %s%n%s", |
| | | e.getMessage(), |
| | | keyDump(substringIndex, key.getData())); |
| | | } |
| | |
| | | cr = orderingIndex.containsID(txn, key, entryID); |
| | | if (cr == ConditionResult.FALSE) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("Missing ID %d%n%s", |
| | | logger.trace("Missing ID %d%n%s", |
| | | entryID.longValue(), |
| | | keyDump(orderingIndex, normalizedBytes)); |
| | | } |
| | |
| | | } |
| | | catch (DatabaseException e) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("Error reading database: %s%n%s", |
| | | logger.trace("Error reading database: %s%n%s", |
| | | e.getMessage(), |
| | | keyDump(orderingIndex, normalizedBytes)); |
| | | } |
| | |
| | | cr = approximateIndex.containsID(txn, key, entryID); |
| | | if (cr == ConditionResult.FALSE) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugError("Missing ID %d%n%s", |
| | | logger.trace("Missing ID %d%n%s", |
| | | entryID.longValue(), |
| | | keyDump(orderingIndex, normalizedBytes)); |
| | | } |
| | |
| | | } |
| | | catch (DatabaseException e) |
| | | { |
| | | if (debugEnabled()) |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logger.traceException(e); |
| | | |
| | | TRACER.debugError("Error reading database: %s%n%s", |
| | | logger.trace("Error reading database: %s%n%s", |
| | | e.getMessage(), |
| | | keyDump(approximateIndex, normalizedBytes)); |
| | | } |
| | |
| | | } |
| | | catch (DatabaseException e) |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | } |
| | | logger.traceException(e); |
| | | } |
| | | |
| | | |