Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9601

Refine logging to help detect dangling previous document pointers

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.40.0
    • 1.42.0
    • documentmk
    • None

    Description

      The log warns similar to the below pattern occur rather regularly:

      org.apache.jackrabbit.oak.plugins.document.NodeDocument Document with previous revisions not found: 3:p/:async/r1795b3e463c-0-2/0
      

      While the root cause is not yet clear, it is likely that this is "only a dangling pointer".

      There were previous cases where something similar occurred: OAK-2377 (also see the referenced OAK-1791)

      In fact, in OAK-2377 the log has been lowered to debug but in the remaining 2 cases it is still at warn: NodeDocument.getPreviousDoc and getPreviousDocs.

      This ticket here is about 2 things:

      • lowering the frequency of logging that warn, since it can flood log files if it applies to a frequently read document
      • add some more details to a suspect root cause for further analysis.

      Attachments

        Issue Links

          Activity

            People

              stefanegli Stefan Egli
              stefanegli Stefan Egli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: