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

SegmentMK thin consistency check on startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • segmentmk

    Description

      Following OAK-2323, I'd like to add a thin consistency check on startup to verify if the current rev is broken by some pending transaction or not.

      The current startup check behavior is too lazy and it can miss some broken repos where the super root is only partly persisted.

      java.lang.IllegalStateException: String is too long: 4531747125156176000
      at org.apache.jackrabbit.oak.plugins.segment.Segment.loadString(Segment.java:344)
      at org.apache.jackrabbit.oak.plugins.segment.Segment.readString(Segment.java:311)
      at org.apache.jackrabbit.oak.plugins.segment.Segment.readString(Segment.java:305)
      at org.apache.jackrabbit.oak.plugins.segment.Segment.loadTemplate(Segment.java:388)
      at org.apache.jackrabbit.oak.plugins.segment.Segment.readTemplate(Segment.java:359)
      at org.apache.jackrabbit.oak.plugins.segment.Segment.readTemplate(Segment.java:353)
      at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.getTemplate(SegmentNodeState.java:74)
      

      Attachments

        Issue Links

          Activity

            People

              stillalex Alex Deparvu
              stillalex Alex Deparvu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: