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

Composite Store ITs fail due to failing NodeTypeDefinitionNodeStoreChecker

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • composite
    • None

    Description

      Both composite node store ITs

      1. https://github.com/apache/jackrabbit-oak/blob/trunk/oak-store-composite/src/test/java/org/apache/jackrabbit/oak/composite/it/BackwardCompatibleMountCompositeIT.java and
      2. https://github.com/apache/jackrabbit-oak/blob/trunk/oak-store-composite/src/test/java/org/apache/jackrabbit/oak/composite/it/MultiMountCompositeIT.java

      fail due to returning null for the primaryType of the root node in https://github.com/apache/jackrabbit-oak/blob/03b95f8005302b7a739bc8ac7ad5808a3cd7e7f5/oak-store-composite/src/main/java/org/apache/jackrabbit/oak/composite/checks/NodeTypeDefinitionNodeStoreChecker.java#L77

      That leads to the following errors

      ERROR: bundle org.apache.jackrabbit.oak-store-composite:1.45.0.SNAPSHOT (52)[org.apache.jackrabbit.oak.composite.CompositeNodeStoreService(53)] : The activate method has thrown an exception
      org.apache.jackrabbit.oak.api.IllegalRepositoryStateException: 18 errors were found: 
      For NodeStore mount libs, path /, encountered the following problem: 'The primary type null does not exist'
      For NodeStore mount libs, path /, encountered the following problem: 'No default primary type available  for child node libs'
      For NodeStore mount libs, path /libs, encountered the following problem: 'The primary type null does not exist'
      For NodeStore mount libs, path /libs, encountered the following problem: 'No default primary type available  for child node libsMount'
      For NodeStore mount libs, path /libs/libsMount, encountered the following problem: 'The primary type null does not exist'
      For NodeStore mount libs, path /, encountered the following problem: 'No default primary type available  for child node apps'
      For NodeStore mount libs, path /apps, encountered the following problem: 'The primary type null does not exist'
      For NodeStore mount libs, path /apps, encountered the following problem: 'No default primary type available  for child node libsMount'
      For NodeStore mount libs, path /apps/libsMount, encountered the following problem: 'The primary type null does not exist'
      For NodeStore mount libs, path /, encountered the following problem: 'The primary type null does not exist'
      For NodeStore mount libs, path /, encountered the following problem: 'No default primary type available  for child node libs'
      For NodeStore mount libs, path /libs, encountered the following problem: 'The primary type null does not exist'
      For NodeStore mount libs, path /libs, encountered the following problem: 'No default primary type available  for child node libsMount'
      For NodeStore mount libs, path /libs/libsMount, encountered the following problem: 'The primary type null does not exist'
      For NodeStore mount libs, path /, encountered the following problem: 'No default primary type available  for child node apps'
      For NodeStore mount libs, path /apps, encountered the following problem: 'The primary type null does not exist'
      For NodeStore mount libs, path /apps, encountered the following problem: 'No default primary type available  for child node libsMount'
      For NodeStore mount libs, path /apps/libsMount, encountered the following problem: 'The primary type null does not exist'
      

      That is due to the fact that the IT relies on empty segment node stores which don't even have a primary type set for the root node.

      Reproducability is a bit hard due to the race condition mentioned in OAK-9841

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: