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

Stefan Egli updated OAK-8139:
-----------------------------
    Description: 
OAK-3492 silences log warns when it encounters an 1.0 or 1.2 oak version (in 
the case where there is an inactive cluster node that doesn't have 
lastWrittenRootRev set).

The silencing uses osgi Version to do the version comparison, however the 
actual version is stored in maven format. This breaks for eg the case where 
version is set to something like 1.0.10-SNAPSHOT where it expects 
1.0.10.SNAPSHOT and the following exception would occur:
{{org.apache.jackrabbit.oak.plugins.document.DocumentDiscoveryLiteService 
hasBacklog: couldn't parse version 1.0.10-SNAPSHOT : 
java.lang.IllegalArgumentException: invalid version "1.0.10-SNAPSHOT": 
non-numeric "10-SNAPSHOT"}}

The silencing should be fixed.

  was:
OAK-3492 silences log warns when it encounters an 1.0 or 1.2 oak version (in 
the case where there is an inactive cluster node that doesn't have 
lastWrittenRootRev set).

The silencing uses osgi Version to do the version comparison, however the 
actual version is stored in maven format. This breaks for eg the case where 
version is set to something like 1.0.10-SNAPSHOT where it expects 
1.0.10.SNAPSHOT.

The silencing should be fixed.


> DocumentDiscoveryLiteService hasBacklog silencing must support maven version 
> format
> -----------------------------------------------------------------------------------
>
>                 Key: OAK-8139
>                 URL: https://issues.apache.org/jira/browse/OAK-8139
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: documentmk
>    Affects Versions: 1.4.0
>            Reporter: Stefan Egli
>            Assignee: Stefan Egli
>            Priority: Minor
>
> OAK-3492 silences log warns when it encounters an 1.0 or 1.2 oak version (in 
> the case where there is an inactive cluster node that doesn't have 
> lastWrittenRootRev set).
> The silencing uses osgi Version to do the version comparison, however the 
> actual version is stored in maven format. This breaks for eg the case where 
> version is set to something like 1.0.10-SNAPSHOT where it expects 
> 1.0.10.SNAPSHOT and the following exception would occur:
> {{org.apache.jackrabbit.oak.plugins.document.DocumentDiscoveryLiteService 
> hasBacklog: couldn't parse version 1.0.10-SNAPSHOT : 
> java.lang.IllegalArgumentException: invalid version "1.0.10-SNAPSHOT": 
> non-numeric "10-SNAPSHOT"}}
> The silencing should be fixed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to