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

calling SolrRequestInfo.clearRequestInfo() twice repeats hook.close()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 8.9
    • 8.11.1
    • None
      • 2x solr nodes (12cpu, 40Gb, 300gb hdd)
      • solr heap: 30Gb
      • index size: ~60Gb per node
      • docs count: ~1M

       

    Description

      Hello,

      When I executing an export query, sometimes I get the error:

      [c:text s:shard1 r:core_node3 x:text_shard1_replica_n1] o.a.s.c.SolrCore java.lang.IllegalArgumentException: Unknown directory: NRTCachingDirectory(MMapDirectory@/var/solrhome/workset_9ce130e7-eee0-4d7b-be71-e22d54c55f81_shard1_replica_n1/data/snapshot_metadata lockFactory=org.apache.lucene.store.NativeFSLockFactory@21d64083; maxCacheMB=48.0 maxMergeSizeMB=4.0) {}[c:text s:shard1 r:core_node3 x:text_shard1_replica_n1] o.a.s.c.SolrCore java.lang.IllegalArgumentException: Unknown directory: NRTCachingDirectory(MMapDirectory@/var/solrhome/workset_9ce130e7-eee0-4d7b-be71-e22d54c55f81_shard1_replica_n1/data/snapshot_metadata lockFactory=org.apache.lucene.store.NativeFSLockFactory@21d64083; maxCacheMB=48.0 maxMergeSizeMB=4.0) {} at org.apache.solr.core.CachingDirectoryFactory.release(CachingDirectoryFactory.java:441) at org.apache.solr.core.SolrCore.close(SolrCore.java:1684) at org.apache.solr.search.JoinQParserPlugin$Method.parseJoin(JoinQParserPlugin.java:191) at org.apache.solr.search.JoinQParserPlugin$Method$1.makeFilter(JoinQParserPlugin.java:98) at org.apache.solr.search.JoinQParserPlugin$1.parse(JoinQParserPlugin.java:237) at org.apache.solr.search.QParser.getQuery(QParser.java:174) at org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:1080) at org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:551) at org.apache.solr.parser.SolrQueryParserBase.handleQuotedTerm(SolrQueryParserBase.java:8
      

      After that, working with the "Unknown" collection is impossible until solr restarts. A few words about my queries - all of them consist of "fq" with {!join from=...} and "q" of different complexity. In my experience, the complexity of "q" doesn't affect this error.

      The exception happens only when using export, with /select handler same query works well. Seems using export + query with join sometimes causes a bug.

      Attachments

        1. SOLR-15635.patch
          3 kB
          Mikhail Khludnev
        2. SOLR-15635.patch
          4 kB
          Mikhail Khludnev
        3. err2.log
          37 kB
          Roman Voronin
        4. err1.log
          39 kB
          Roman Voronin

        Activity

          People

            mkhl Mikhail Khludnev
            flpftoa Roman Voronin
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 7h 10m
                7h 10m