Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
8.9
-
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.