| | |
| | | |
| | | import static org.opends.server.loggers.debug.DebugLogger.debugCought; |
| | | import static org.opends.server.loggers.debug.DebugLogger.debugEnabled; |
| | | import static org.opends.server.loggers.debug.DebugLogger.debugError; |
| | | import org.opends.server.types.DebugLogLevel; |
| | | import static org.opends.server.messages.MessageHandler.getMessage; |
| | | import static org.opends.server.messages.JebMessages.*; |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("Malformed id2entry ID %s.%n", |
| | | StaticUtils.bytesToHex(key.getData())); |
| | | } |
| | | errorCount++; |
| | | System.err.printf("Malformed id2entry ID %s.%n", |
| | | StaticUtils.bytesToHex(key.getData())); |
| | | continue; |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("Malformed id2entry record for ID %d:%n%s%n", |
| | | entryID.longValue(), |
| | | StaticUtils.bytesToHex(data.getData())); |
| | | } |
| | | errorCount++; |
| | | System.err.printf("Malformed id2entry record for ID %d:%n%s%n", |
| | | entryID.longValue(), |
| | | StaticUtils.bytesToHex(data.getData())); |
| | | continue; |
| | | } |
| | | |
| | |
| | | if (keyCount != storedEntryCount) |
| | | { |
| | | errorCount++; |
| | | System.err.printf("The stored entry count in id2entry (%d) does " + |
| | | "not agree with the actual number of entry " + |
| | | "records found (%d).%n", |
| | | storedEntryCount, keyCount); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("The stored entry count in id2entry (%d) does " + |
| | | "not agree with the actual number of entry " + |
| | | "records found (%d).%n", storedEntryCount, keyCount); |
| | | } |
| | | } |
| | | } |
| | | finally |
| | |
| | | } |
| | | catch (DirectoryException e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("File dn2id has malformed key %s.%n", |
| | | StaticUtils.bytesToHex(key.getData())); |
| | | } |
| | | errorCount++; |
| | | System.err.printf("File dn2id has malformed key %s.%n", |
| | | StaticUtils.bytesToHex(key.getData())); |
| | | continue; |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("File dn2id has malformed ID for DN <%s>:%n%s%n", |
| | | dn.toNormalizedString(), |
| | | StaticUtils.bytesToHex(data.getData())); |
| | | } |
| | | errorCount++; |
| | | System.err.printf("File dn2id has malformed ID for DN <%s>:%n%s%n", |
| | | dn.toNormalizedString(), |
| | | StaticUtils.bytesToHex(data.getData())); |
| | | continue; |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | } |
| | | errorCount++; |
| | | System.err.println(e.getMessage()); |
| | | continue; |
| | | } |
| | | |
| | | if (entry == null) |
| | | { |
| | | errorCount++; |
| | | System.err.printf("File dn2id has DN <%s> referencing unknown " + |
| | | "ID %d%n", |
| | | dn.toNormalizedString(), entryID.longValue()); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("File dn2id has DN <%s> referencing unknown " + |
| | | "ID %d%n", dn.toNormalizedString(), entryID.longValue()); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (!entry.getDN().equals(dn)) |
| | | { |
| | | errorCount++; |
| | | System.err.printf("File dn2id has DN <%s> referencing entry " + |
| | | "with wrong DN <%s>%n", |
| | | dn.toNormalizedString(), |
| | | entry.getDN().toNormalizedString()); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("File dn2id has DN <%s> referencing entry " + |
| | | "with wrong DN <%s>%n", dn.toNormalizedString(), |
| | | entry.getDN().toNormalizedString()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("File id2children has malformed ID %s%n", |
| | | StaticUtils.bytesToHex(key.getData())); |
| | | } |
| | | errorCount++; |
| | | System.err.printf("File id2children has malformed ID %s%n", |
| | | StaticUtils.bytesToHex(key.getData())); |
| | | continue; |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("File id2children has malformed ID list " + |
| | | "for ID %s:%n%s%n", entryID, |
| | | StaticUtils.bytesToHex(data.getData())); |
| | | } |
| | | errorCount++; |
| | | System.err.printf("File id2children has malformed ID list " + |
| | | "for ID %s:%n%s%n", |
| | | entryID, |
| | | StaticUtils.bytesToHex(data.getData())); |
| | | continue; |
| | | } |
| | | |
| | |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | } |
| | | errorCount++; |
| | | System.err.println(e.getMessage()); |
| | | continue; |
| | | } |
| | | |
| | | if (entry == null) |
| | | { |
| | | errorCount++; |
| | | System.err.printf("File id2children has unknown ID %d%n", |
| | | entryID.longValue()); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("File id2children has unknown ID %d%n", |
| | | entryID.longValue()); |
| | | } |
| | | continue; |
| | | } |
| | | |
| | |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | } |
| | | errorCount++; |
| | | System.err.println(e.getMessage()); |
| | | continue; |
| | | } |
| | | |
| | | if (childEntry == null) |
| | | { |
| | | errorCount++; |
| | | System.err.printf("File id2children has ID %d referencing " + |
| | | "unknown ID %d%n", |
| | | entryID.longValue(), id.longValue()); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("File id2children has ID %d referencing " + |
| | | "unknown ID %d%n", entryID.longValue(), id.longValue()); |
| | | } |
| | | continue; |
| | | } |
| | | |
| | |
| | | entry.getDN().getNumComponents() + 1) |
| | | { |
| | | errorCount++; |
| | | System.err.printf("File id2children has ID %d with DN <%s> " + |
| | | "referencing ID %d with non-child DN <%s>%n", |
| | | entryID.longValue(), entry.getDN().toString(), |
| | | id.longValue(), childEntry.getDN().toString()); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("File id2children has ID %d with DN <%s> " + |
| | | "referencing ID %d with non-child DN <%s>%n", |
| | | entryID.longValue(), entry.getDN().toString(), |
| | | id.longValue(), childEntry.getDN().toString()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("File id2subtree has malformed ID %s%n", |
| | | StaticUtils.bytesToHex(key.getData())); |
| | | } |
| | | errorCount++; |
| | | System.err.printf("File id2subtree has malformed ID %s%n", |
| | | StaticUtils.bytesToHex(key.getData())); |
| | | continue; |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("File id2subtree has malformed ID list " + |
| | | "for ID %s:%n%s%n", entryID, |
| | | StaticUtils.bytesToHex(data.getData())); |
| | | } |
| | | errorCount++; |
| | | System.err.printf("File id2subtree has malformed ID list " + |
| | | "for ID %s:%n%s%n", |
| | | entryID, |
| | | StaticUtils.bytesToHex(data.getData())); |
| | | continue; |
| | | } |
| | | |
| | |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | } |
| | | errorCount++; |
| | | System.err.println(e.getMessage()); |
| | | continue; |
| | | } |
| | | |
| | | if (entry == null) |
| | | { |
| | | errorCount++; |
| | | System.err.printf("File id2subtree has unknown ID %d%n", |
| | | entryID.longValue()); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("File id2subtree has unknown ID %d%n", |
| | | entryID.longValue()); |
| | | } |
| | | continue; |
| | | } |
| | | |
| | |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | } |
| | | errorCount++; |
| | | System.err.println(e.getMessage()); |
| | | continue; |
| | | } |
| | | |
| | | if (subordEntry == null) |
| | | { |
| | | errorCount++; |
| | | System.err.printf("File id2subtree has ID %d referencing " + |
| | | "unknown ID %d%n", |
| | | entryID.longValue(), id.longValue()); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("File id2subtree has ID %d referencing " + |
| | | "unknown ID %d%n", entryID.longValue(), id.longValue()); |
| | | } |
| | | continue; |
| | | } |
| | | |
| | | if (!subordEntry.getDN().isDescendantOf(entry.getDN())) |
| | | { |
| | | errorCount++; |
| | | System.err.printf("File id2subtree has ID %d with DN <%s> " + |
| | | "referencing ID %d with non-subordinate " + |
| | | "DN <%s>%n", |
| | | entryID.longValue(), entry.getDN().toString(), |
| | | id.longValue(), subordEntry.getDN().toString()); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("File id2subtree has ID %d with DN <%s> " + |
| | | "referencing ID %d with non-subordinate " + |
| | | "DN <%s>%n", |
| | | entryID.longValue(), entry.getDN().toString(), |
| | | id.longValue(), subordEntry.getDN().toString()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | errorCount++; |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("Malformed ID list: %s%n%s", |
| | | StaticUtils.bytesToHex(data.getData()), |
| | | keyDump(index, key.getData())); |
| | | } |
| | | errorCount++; |
| | | System.err.printf("Malformed ID list: %s%n%s", |
| | | StaticUtils.bytesToHex(data.getData()), |
| | | keyDump(index, key.getData())); |
| | | continue; |
| | | } |
| | | |
| | |
| | | |
| | | default: |
| | | errorCount++; |
| | | System.err.printf("Malformed value%n%s", |
| | | keyDump(index, value)); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("Malformed value%n%s", keyDump(index, value)); |
| | | } |
| | | continue; |
| | | } |
| | | |
| | |
| | | { |
| | | if (prevID != null && id.equals(prevID)) |
| | | { |
| | | System.err.printf("Duplicate reference to ID %d%n%s", |
| | | id.longValue(), keyDump(index, key.getData())); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("Duplicate reference to ID %d%n%s", |
| | | id.longValue(), keyDump(index, key.getData())); |
| | | } |
| | | } |
| | | prevID = id; |
| | | |
| | |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | } |
| | | errorCount++; |
| | | System.err.println(e.getMessage()); |
| | | continue; |
| | | } |
| | | |
| | | if (entry == null) |
| | | { |
| | | errorCount++; |
| | | System.err.printf("Reference to unknown ID %d%n%s", |
| | | id.longValue(), keyDump(index, key.getData())); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("Reference to unknown ID %d%n%s", |
| | | id.longValue(), keyDump(index, key.getData())); |
| | | } |
| | | continue; |
| | | } |
| | | |
| | |
| | | if (!sf.matchesEntry(entry)) |
| | | { |
| | | errorCount++; |
| | | System.err.printf("Reference to entry " + |
| | | "<%s> which does not match the value%n%s", |
| | | entry.getDN(), keyDump(index, value)); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("Reference to entry " + |
| | | "<%s> which does not match the value%n%s", |
| | | entry.getDN(), keyDump(index, value)); |
| | | } |
| | | } |
| | | } |
| | | catch (DirectoryException e) |
| | |
| | | EntryID id = dn2id.get(null, dn); |
| | | if (id == null) |
| | | { |
| | | System.err.printf("File dn2id is missing key %s.%n", |
| | | dn.toNormalizedString()); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("File dn2id is missing key %s.%n", |
| | | dn.toNormalizedString()); |
| | | } |
| | | errorCount++; |
| | | } |
| | | else if (!id.equals(entryID)) |
| | | { |
| | | System.err.printf("File dn2id has ID %d instead of %d for key %s.%n", |
| | | id.longValue(), |
| | | entryID.longValue(), |
| | | dn.toNormalizedString()); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("File dn2id has ID %d instead of %d for key %s.%n", |
| | | id.longValue(), |
| | | entryID.longValue(), |
| | | dn.toNormalizedString()); |
| | | } |
| | | errorCount++; |
| | | } |
| | | } |
| | |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("File dn2id has error reading key %s: %s.%n", |
| | | dn.toNormalizedString(), |
| | | e.getMessage()); |
| | | } |
| | | System.err.printf("File dn2id has error reading key %s: %s.%n", |
| | | dn.toNormalizedString(), |
| | | e.getMessage()); |
| | | errorCount++; |
| | | } |
| | | |
| | |
| | | EntryID id = dn2id.get(null, parentDN); |
| | | if (id == null) |
| | | { |
| | | System.err.printf("File dn2id is missing key %s.%n", |
| | | parentDN.toNormalizedString()); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("File dn2id is missing key %s.%n", |
| | | parentDN.toNormalizedString()); |
| | | } |
| | | errorCount++; |
| | | } |
| | | } |
| | |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("File dn2id has error reading key %s: %s.%n", |
| | | parentDN.toNormalizedString(), |
| | | e.getMessage()); |
| | | } |
| | | System.err.printf("File dn2id has error reading key %s: %s.%n", |
| | | parentDN.toNormalizedString(), |
| | | e.getMessage()); |
| | | errorCount++; |
| | | } |
| | | } |
| | |
| | | parentID = dn2id.get(null, parentDN); |
| | | if (parentID == null) |
| | | { |
| | | System.err.printf("File dn2id is missing key %s.%n", |
| | | parentDN.toNormalizedString()); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("File dn2id is missing key %s.%n", |
| | | parentDN.toNormalizedString()); |
| | | } |
| | | errorCount++; |
| | | } |
| | | } |
| | |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("File dn2id has error reading key %s: %s.", |
| | | parentDN.toNormalizedString(), |
| | | e.getMessage()); |
| | | } |
| | | System.err.printf("File dn2id has error reading key %s: %s.", |
| | | parentDN.toNormalizedString(), |
| | | e.getMessage()); |
| | | errorCount++; |
| | | } |
| | | if (parentID != null) |
| | |
| | | cr = id2c.containsID(null, parentID.getDatabaseEntry(), entryID); |
| | | if (cr == ConditionResult.FALSE) |
| | | { |
| | | System.err.printf("File id2children is missing ID %d " + |
| | | "for key %d.%n", |
| | | entryID.longValue(), parentID.longValue()); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("File id2children is missing ID %d " + |
| | | "for key %d.%n", |
| | | entryID.longValue(), parentID.longValue()); |
| | | } |
| | | errorCount++; |
| | | } |
| | | else if (cr == ConditionResult.UNDEFINED) |
| | |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("File id2children has error reading key %d: %s.", |
| | | parentID.longValue(), e.getMessage()); |
| | | } |
| | | System.err.printf("File id2children has error reading key %d: %s.", |
| | | parentID.longValue(), e.getMessage()); |
| | | errorCount++; |
| | | } |
| | | } |
| | |
| | | id = dn2id.get(null, dn); |
| | | if (id == null) |
| | | { |
| | | System.err.printf("File dn2id is missing key %s.%n", |
| | | dn.toNormalizedString()); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("File dn2id is missing key %s.%n", |
| | | dn.toNormalizedString()); |
| | | } |
| | | errorCount++; |
| | | } |
| | | } |
| | |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("File dn2id has error reading key %s: %s.%n", |
| | | dn.toNormalizedString(), |
| | | e.getMessage()); |
| | | } |
| | | System.err.printf("File dn2id has error reading key %s: %s.%n", |
| | | dn.toNormalizedString(), |
| | | e.getMessage()); |
| | | errorCount++; |
| | | } |
| | | if (id != null) |
| | |
| | | cr = id2s.containsID(null, id.getDatabaseEntry(), entryID); |
| | | if (cr == ConditionResult.FALSE) |
| | | { |
| | | System.err.printf("File id2subtree is missing ID %d " + |
| | | "for key %d.%n", |
| | | entryID.longValue(), id.longValue()); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("File id2subtree is missing ID %d " + |
| | | "for key %d.%n", |
| | | entryID.longValue(), id.longValue()); |
| | | } |
| | | errorCount++; |
| | | } |
| | | else if (cr == ConditionResult.UNDEFINED) |
| | |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("File id2subtree has error reading key %d: %s.%n", |
| | | id.longValue(), e.getMessage()); |
| | | } |
| | | System.err.printf("File id2subtree has error reading key %d: %s.%n", |
| | | id.longValue(), e.getMessage()); |
| | | errorCount++; |
| | | } |
| | | } |
| | |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("Error normalizing values of attribute %s in " + |
| | | "entry <%s>: %s.%n", |
| | | attrIndex.getAttributeType().toString(), |
| | | entry.getDN().toString(), |
| | | e.getErrorMessage()); |
| | | } |
| | | System.err.printf("Error normalizing values of attribute %s in " + |
| | | "entry <%s>: %s.%n", |
| | | attrIndex.getAttributeType().toString(), |
| | | entry.getDN().toString(), |
| | | e.getErrorMessage()); |
| | | } |
| | | } |
| | | } |
| | |
| | | cr = presenceIndex.containsID(txn, presenceKey, entryID); |
| | | if (cr == ConditionResult.FALSE) |
| | | { |
| | | System.err.printf("Missing ID %d%n%s", |
| | | entryID.longValue(), |
| | | keyDump(presenceIndex, presenceKey.getData())); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("Missing ID %d%n%s", |
| | | entryID.longValue(), |
| | | keyDump(presenceIndex, presenceKey.getData())); |
| | | } |
| | | errorCount++; |
| | | } |
| | | else if (cr == ConditionResult.UNDEFINED) |
| | |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("Error reading database: %s%n%s", |
| | | e.getMessage(), |
| | | keyDump(presenceIndex, presenceKey.getData())); |
| | | } |
| | | System.err.printf("Error reading database: %s%n%s", |
| | | e.getMessage(), |
| | | keyDump(presenceIndex, presenceKey.getData())); |
| | | errorCount++; |
| | | } |
| | | } |
| | |
| | | cr = equalityIndex.containsID(txn, key, entryID); |
| | | if (cr == ConditionResult.FALSE) |
| | | { |
| | | System.err.printf("Missing ID %d%n%s", |
| | | entryID.longValue(), |
| | | keyDump(equalityIndex, normalizedBytes)); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("Missing ID %d%n%s", |
| | | entryID.longValue(), |
| | | keyDump(equalityIndex, normalizedBytes)); |
| | | } |
| | | errorCount++; |
| | | } |
| | | else if (cr == ConditionResult.UNDEFINED) |
| | |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("Error reading database: %s%n%s", |
| | | e.getMessage(), |
| | | keyDump(equalityIndex, normalizedBytes)); |
| | | } |
| | | System.err.printf("Error reading database: %s%n%s", |
| | | e.getMessage(), |
| | | keyDump(equalityIndex, normalizedBytes)); |
| | | errorCount++; |
| | | } |
| | | } |
| | |
| | | cr = substringIndex.containsID(txn, key, entryID); |
| | | if (cr == ConditionResult.FALSE) |
| | | { |
| | | System.err.printf("Missing ID %d%n%s", |
| | | entryID.longValue(), |
| | | keyDump(substringIndex, key.getData())); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("Missing ID %d%n%s", |
| | | entryID.longValue(), |
| | | keyDump(substringIndex, key.getData())); |
| | | } |
| | | errorCount++; |
| | | } |
| | | else if (cr == ConditionResult.UNDEFINED) |
| | |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("Error reading database: %s%n%s", |
| | | e.getMessage(), |
| | | keyDump(substringIndex, key.getData())); |
| | | } |
| | | System.err.printf("Error reading database: %s%n%s", |
| | | e.getMessage(), |
| | | keyDump(substringIndex, key.getData())); |
| | | errorCount++; |
| | | } |
| | | } |
| | |
| | | cr = orderingIndex.containsID(txn, key, entryID); |
| | | if (cr == ConditionResult.FALSE) |
| | | { |
| | | System.err.printf("Missing ID %d%n%s", |
| | | entryID.longValue(), |
| | | keyDump(orderingIndex, normalizedBytes)); |
| | | if (debugEnabled()) |
| | | { |
| | | debugError("Missing ID %d%n%s", |
| | | entryID.longValue(), |
| | | keyDump(orderingIndex, normalizedBytes)); |
| | | } |
| | | errorCount++; |
| | | } |
| | | else if (cr == ConditionResult.UNDEFINED) |
| | |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | |
| | | debugError("Error reading database: %s%n%s", |
| | | e.getMessage(), |
| | | keyDump(orderingIndex, normalizedBytes)); |
| | | } |
| | | System.err.printf("Error reading database: %s%n%s", |
| | | e.getMessage(), |
| | | keyDump(orderingIndex, normalizedBytes)); |
| | | errorCount++; |
| | | } |
| | | } |