Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9291

ZkSolrResourceLoader should not retry fetching resources if the server has been shutdown

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2, master (7.0)
    • Component/s: SolrCloud, Tests
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      See http://jenkins.thetaphi.de/job/Lucene-Solr-master-Linux/17211/

      Build: http://jenkins.thetaphi.de/job/Lucene-Solr-master-Linux/17211/
      Java: 64bit/jdk-9-ea+125 -XX:-UseCompressedOops -XX:+UseConcMarkSweepGC
      
      1 tests failed.
      FAILED:  junit.framework.TestSuite.org.apache.solr.handler.TestSolrConfigHandlerCloud
      
      Error Message:
      1 thread leaked from SUITE scope at org.apache.solr.handler.TestSolrConfigHandlerCloud:     1) Thread[id=13408, name=Thread-4239, state=TIMED_WAITING, group=TGRP-TestSolrConfigHandlerCloud]         at java.lang.Thread.sleep(java.base@9-ea/Native Method)         at org.apache.solr.cloud.ZkSolrResourceLoader.openResource(ZkSolrResourceLoader.java:101)         at org.apache.solr.core.SolrResourceLoader.openSchema(SolrResourceLoader.java:333)         at org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:48)         at org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:75)         at org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:107)         at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:78)         at org.apache.solr.core.CoreContainer.reload(CoreContainer.java:959)         at org.apache.solr.core.SolrCore.lambda$getConfListener$6(SolrCore.java:2544)         at org.apache.solr.core.SolrCore$$Lambda$190/2120853973.run(Unknown Source)         at org.apache.solr.cloud.ZkController$4.run(ZkController.java:2445)
      
      Stack Trace:
      com.carrotsearch.randomizedtesting.ThreadLeakError: 1 thread leaked from SUITE scope at org.apache.solr.handler.TestSolrConfigHandlerCloud:
         1) Thread[id=13408, name=Thread-4239, state=TIMED_WAITING, group=TGRP-TestSolrConfigHandlerCloud]
              at java.lang.Thread.sleep(java.base@9-ea/Native Method)
              at org.apache.solr.cloud.ZkSolrResourceLoader.openResource(ZkSolrResourceLoader.java:101)
              at org.apache.solr.core.SolrResourceLoader.openSchema(SolrResourceLoader.java:333)
              at org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:48)
              at org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:75)
              at org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:107)
              at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:78)
              at org.apache.solr.core.CoreContainer.reload(CoreContainer.java:959)
              at org.apache.solr.core.SolrCore.lambda$getConfListener$6(SolrCore.java:2544)
              at org.apache.solr.core.SolrCore$$Lambda$190/2120853973.run(Unknown Source)
              at org.apache.solr.cloud.ZkController$4.run(ZkController.java:2445)
              at __randomizedtesting.SeedInfo.seed([BADD07D0FBA79324]:0)
      
      1. SOLR-9291.patch
        2 kB
        Shalin Shekhar Mangar

        Activity

        Hide
        shalinmangar Shalin Shekhar Mangar added a comment -

        This thread is re-trying to load a resource from ZK after the session is expired. A simple fix is to check if the server has been shutdown before attempting the sleep.

        Show
        shalinmangar Shalin Shekhar Mangar added a comment - This thread is re-trying to load a resource from ZK after the session is expired. A simple fix is to check if the server has been shutdown before attempting the sleep.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 42e1caf2bfe6385cc1dc55ec97c449330da74b71 in lucene-solr's branch refs/heads/master from Shalin Shekhar Mangar
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=42e1caf ]

        SOLR-9291: ZkSolrResourceLoader should not retry fetching resources if the server has been shutdown

        Show
        jira-bot ASF subversion and git services added a comment - Commit 42e1caf2bfe6385cc1dc55ec97c449330da74b71 in lucene-solr's branch refs/heads/master from Shalin Shekhar Mangar [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=42e1caf ] SOLR-9291 : ZkSolrResourceLoader should not retry fetching resources if the server has been shutdown
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 9d8cc80a793268b75d7dd287b9e3e15a8e8632a0 in lucene-solr's branch refs/heads/branch_6x from Shalin Shekhar Mangar
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=9d8cc80 ]

        SOLR-9291: ZkSolrResourceLoader should not retry fetching resources if the server has been shutdown
        (cherry picked from commit 42e1caf)

        Show
        jira-bot ASF subversion and git services added a comment - Commit 9d8cc80a793268b75d7dd287b9e3e15a8e8632a0 in lucene-solr's branch refs/heads/branch_6x from Shalin Shekhar Mangar [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=9d8cc80 ] SOLR-9291 : ZkSolrResourceLoader should not retry fetching resources if the server has been shutdown (cherry picked from commit 42e1caf)
        Hide
        mikemccand Michael McCandless added a comment -

        Bulk close resolved issues after 6.2.0 release.

        Show
        mikemccand Michael McCandless added a comment - Bulk close resolved issues after 6.2.0 release.

          People

          • Assignee:
            shalinmangar Shalin Shekhar Mangar
            Reporter:
            shalinmangar Shalin Shekhar Mangar
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development