You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Egli (JIRA)" <ji...@apache.org> on 2017/05/31 10:09:04 UTC

[jira] [Created] (SLING-6924) [discovery] avoid harmless error message when new instance joins

Stefan Egli created SLING-6924:
----------------------------------

             Summary: [discovery] avoid harmless error message when new instance joins
                 Key: SLING-6924
                 URL: https://issues.apache.org/jira/browse/SLING-6924
             Project: Sling
          Issue Type: Improvement
          Components: Extensions
    Affects Versions: Discovery Oak 1.2.16
            Reporter: Stefan Egli
            Priority: Minor
             Fix For: Discovery Oak 1.2.20


When a new instance joins a cluster in discovery.oak, and that instance for some reason is rather behaving slowly towards the repository (read: slow in committing), then the following two errors have been noticed in the log file. Note that these errors are harmless, as things still work completely fine. However they are confusing, so they should be avoided of course.

* case 1: {noformat}30.05.2017 15:37:56.053 *ERROR* [discovery.connectors.common.runner.11a0370b-2bf3-43a8-a779-54e3445fcf90.discoveryLiteCheck] org.apache.sling.discovery.oak.cluster.OakClusterViewService getLocalClusterView: repository exception: java.lang.NullPointerException
java.lang.NullPointerException: null
        at org.apache.sling.discovery.oak.cluster.OakClusterViewService.getLeaderElectionId(OakClusterViewService.java:296)
        at org.apache.sling.discovery.oak.cluster.OakClusterViewService.asClusterView(OakClusterViewService.java:180)
        at org.apache.sling.discovery.oak.cluster.OakClusterViewService.getLocalClusterView(OakClusterViewService.java:120)
        at org.apache.sling.discovery.base.commons.BaseDiscoveryService.getTopology(BaseDiscoveryService.java:77)
        at org.apache.sling.discovery.oak.OakDiscoveryService.checkForTopologyChange(OakDiscoveryService.java:660)
        at org.apache.sling.discovery.oak.pinger.OakViewChecker.discoveryLiteCheck(OakViewChecker.java:217)
        at org.apache.sling.discovery.oak.pinger.OakViewChecker.access$000(OakViewChecker.java:62)
        at org.apache.sling.discovery.oak.pinger.OakViewChecker$1.run(OakViewChecker.java:193)
        at org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.safelyRun(PeriodicBackgroundJob.java:86)
        at org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.run(PeriodicBackgroundJob.java:77)
        at java.lang.Thread.run(Thread.java:745){noformat}
* case 2 : {noformat}30.05.2017 15:38:00.058 *ERROR* [discovery.connectors.common.runner.11a0370b-2bf3-43a8-a779-54e3445fcf90.discoveryLiteCheck] org.apache.sling.discovery.oak.cluster.OakClusterViewService getLocalClusterView: repository exception: java.lang.NullPointerException
java.lang.NullPointerException: null
        at org.apache.sling.discovery.oak.cluster.OakClusterViewService$1.compare(OakClusterViewService.java:189)
        at org.apache.sling.discovery.oak.cluster.OakClusterViewService$1.compare(OakClusterViewService.java:185)
        at java.util.TimSort.countRunAndMakeAscending(TimSort.java:360)
        at java.util.TimSort.sort(TimSort.java:220)
        at java.util.Arrays.sort(Arrays.java:1438)
        at java.util.List.sort(List.java:478)
        at java.util.Collections.sort(Collections.java:175)
        at org.apache.sling.discovery.oak.cluster.OakClusterViewService.asClusterView(OakClusterViewService.java:185)
        at org.apache.sling.discovery.oak.cluster.OakClusterViewService.getLocalClusterView(OakClusterViewService.java:120)
        at org.apache.sling.discovery.base.commons.BaseDiscoveryService.getTopology(BaseDiscoveryService.java:77)
        at org.apache.sling.discovery.oak.OakDiscoveryService.checkForTopologyChange(OakDiscoveryService.java:660)
        at org.apache.sling.discovery.oak.pinger.OakViewChecker.discoveryLiteCheck(OakViewChecker.java:217)
        at org.apache.sling.discovery.oak.pinger.OakViewChecker.access$000(OakViewChecker.java:62)
        at org.apache.sling.discovery.oak.pinger.OakViewChecker$1.run(OakViewChecker.java:193)
        at org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.safelyRun(PeriodicBackgroundJob.java:86)
        at org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.run(PeriodicBackgroundJob.java:77)
        at java.lang.Thread.run(Thread.java:745){noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)