You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Stefan Egli (JIRA)" <ji...@apache.org> on 2015/08/25 18:08:46 UTC

[jira] [Resolved] (OAK-3289) ClusterViewDocument should store longs, not integers

     [ https://issues.apache.org/jira/browse/OAK-3289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Egli resolved OAK-3289.
------------------------------
    Resolution: Fixed

> ClusterViewDocument should store longs, not integers
> ----------------------------------------------------
>
>                 Key: OAK-3289
>                 URL: https://issues.apache.org/jira/browse/OAK-3289
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, rdbmk
>    Affects Versions: 1.3.4
>            Reporter: Stefan Egli
>            Assignee: Stefan Egli
>             Fix For: 1.3.5
>
>
> The following error occurs on RDBMk:
> {code}
> 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)
> {code}
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)