Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Some of our tests that use TestHarness directly will get stack traces in the logs like:
445679 ERROR (TEST-TestMainQueryCaching.testConstantScoreFlScore-seed#[4D3E6227AF412C42]) [] o.a.s.c.CorePropertiesLocator Couldn't load core descriptor from /Users/jenkins/workspace/Solr-main-MacOSX/solr/core/build/resources/test/solr/collection1/core.properties: => java.nio.file.NoSuchFileException: /Users/jenkins/workspace/Solr-main-MacOSX/solr/core/build/resources/test/solr/collection1/core.properties at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) java.nio.file.NoSuchFileException: /Users/jenkins/workspace/Solr-main-MacOSX/solr/core/build/resources/test/solr/collection1/core.properties at sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) ~[?:?] at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) ~[?:?] at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?] at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219) ~[?:?] at java.nio.file.Files.newByteChannel(Files.java:375) ~[?:?] at java.nio.file.Files.newByteChannel(Files.java:426) ~[?:?] at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420) ~[?:?] at java.nio.file.Files.newInputStream(Files.java:160) ~[?:?] at org.apache.solr.core.CorePropertiesLocator.buildCoreDescriptor(CorePropertiesLocator.java:200) [main/:?] at org.apache.solr.core.CoreContainer.reloadCoreDescriptor(CoreContainer.java:1818) [main/:?] at org.apache.solr.core.CoreContainer.reload(CoreContainer.java:1865) [main/:?] at org.apache.solr.core.CoreContainer.reload(CoreContainer.java:1845) [main/:?] at org.apache.solr.util.TestHarness.reload(TestHarness.java:282) [solr-test-framework-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 03946ee1f585017bd2c3c0c79edd645ef962f8bd [snapshot build, details omitted]] at org.apache.solr.search.TestMainQueryCaching.beforeTest(TestMainQueryCaching.java:79) [test/:?]
The comment in CoreContainer#reloadCoreDescriptor suggest that this is because our tests don't all actually write a core.properties file. We should either fix that or make this error less scary.
Attachments
Issue Links
- links to