Mike Drob created SOLR-16349:
--------------------------------

             Summary: TestHarness complains about missing core.properties file
                 Key: SOLR-16349
                 URL: https://issues.apache.org/jira/browse/SOLR-16349
             Project: Solr
          Issue Type: Bug
            Reporter: Mike Drob


Some of our tests that use TestHarness directly will get stack traces in the 
logs like:

{noformat}
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/:?]
{noformat}

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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to