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

ClusterViewDocument should store longs, not integers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.4
    • 1.3.5, 1.4
    • core, rdbmk
    • None

    Description

      The following error occurs on RDBMk:

      25.08.2015 14:26:48.381 *ERROR* [DocumentDiscoveryLiteService-BackgroundWorker-[
      1]] org.apache.jackrabbit.oak.plugins.document.DocumentDiscoveryLiteService doCh
      eckView: RuntimeException: re: java.lang.ClassCastException: java.lang.Long cann
      ot be cast to java.lang.Integer
      java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
      at org.apache.jackrabbit.oak.plugins.document.ClusterViewDocument.<init>
      (ClusterViewDocument.java:450)
      at org.apache.jackrabbit.oak.plugins.document.ClusterViewDocument.doRead
      (ClusterViewDocument.java:406)
      at org.apache.jackrabbit.oak.plugins.document.ClusterViewDocument.readOr
      Update(ClusterViewDocument.java:186)
      at org.apache.jackrabbit.oak.plugins.document.DocumentDiscoveryLiteServi
      ce.doCheckView(DocumentDiscoveryLiteService.java:544)
      at org.apache.jackrabbit.oak.plugins.document.DocumentDiscoveryLiteServi
      ce.checkView(DocumentDiscoveryLiteService.java:416)
      

      This is due to the fact that RDBMK uses json which returns long independently of whether it was stored as integer or long in the first place.

      Also see related OAK-3288

      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: