Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-7351

Changelog record decode exceptions do not show the underlying error

    Details

    • Type: Bug
    • Status: Done
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.5.2, 6.5.1, 6.5.0, 6.5.3, 7.0.0
    • Fix Version/s: 7.0.0
    • Component/s: replication
    • Labels:
      None
    • Story Points:
      0.5

      Description

      A customer is seeing changelog searches fail with an exception:

      ChangelogException: Could not decode a record from data read in log file 'java.io.RandomAccessFile@741c1520' (BlockLogReader.java:234 BlockLogReader.java:403 BlockLogReader.java:147 LogFile.java:554 Log.java:1074 Log.java:1230 FileReplicaDBCursor.java:76 CompositeDBCursor.java:143 DomainDBCursor.java:78 CompositeDBCursor.java:91 DomainDBCursor.java:25 CompositeDBCursor.java:143 MultiDomainDBCursor.java:63 CompositeDBCursor.java:91 MultiDomainDBCursor.java:24 ChangelogBackend.java:918 ChangelogBackend.java:805 ChangelogBackend.java:758 ChangelogBackend.java:415 SearchOperation.java:888 SearchOperation.java:836 …)
      

      This is relative to 6.5.0 and some patches (see internal comment). The ChangelogException thrown wraps some underlying Exception object in BlockLogReader.readRecordAtPosition(), but the underlying Exception is never logged anywhere making it hard to understand the issue.

      It may be helpful to log the underlying exception as an error.

      Logging the RandomAccessFile object doesn't seem to be useful ("java.io.RandomAccessFile@741c1520").

        Attachments

          Activity

            People

            • Assignee:
              ondrej.fuchsik Ondrej Fuchsik
              Reporter:
              cjr Chris Ridd
              Dev Assignee:
              Chris Ridd
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: