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

ClassCastException in NodeDocument.split() when collisions detected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.0.1, 1.1.0
    • core, mongomk
    • None

    Description

      When writing nodes concurrently, collisions are detected and the following warnings are logged:

      18:49:33.202 [DocumentNodeStore background thread] WARN  o.a.j.o.p.document.DocumentNodeStore - Background operation failed: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
      java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
      	at org.apache.jackrabbit.oak.plugins.document.NodeDocument.split(NodeDocument.java:919) ~[classes/:na]
      	at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.backgroundSplit(DocumentNodeStore.java:1461) ~[classes/:na]
      	at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.runBackgroundOperations(DocumentNodeStore.java:1370) ~[classes/:na]
      	at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$BackgroundOperation.execute(DocumentNodeStore.java:1755) ~[classes/:na]
      	at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$NodeStoreTask.run(DocumentNodeStore.java:1730) ~[classes/:na]
      	at java.lang.Thread.run(Thread.java:662) [na:1.6.0_41]
      

      Attachments

        1. OAK-1827.patch
          2 kB
          Amit Jain

        Activity

          People

            mreutegg Marcel Reutegger
            amitjain Amit Jain
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: