Hi,
while doing some developments on the federation module I stumbled into a strange exception trace in my log.
The error does not actually seem to be an error (the application continues fine), however, there is a full stack trace in the log on level INFO.
Example code:
@Test
public void demo() throws Exception {
File dataDir = tempDir.toFile();
NativeStore ns = new NativeStore(new File(dataDir, "endpoint"));
SailRepository repo = new SailRepository(ns);
repo.init();
// can do anything here
repo.shutDown();
}
Log output:
[main] INFO org.eclipse.rdf4j.sail.nativerdf.ContextStore - could not read context index: context index file /var/folders/ns/h23528px44q6yqvz45cbcfmc0000gn/T/junit8710876636775043883/endpoint/contexts.dat does not exist
java.io.IOException: context index file /var/folders/ns/h23528px44q6yqvz45cbcfmc0000gn/T/junit8710876636775043883/endpoint/contexts.dat does not exist
at org.eclipse.rdf4j.sail.nativerdf.ContextStore.readContextsFromFile(ContextStore.java:183)
at org.eclipse.rdf4j.sail.nativerdf.ContextStore.<init>(ContextStore.java:102)
at org.eclipse.rdf4j.sail.nativerdf.NativeSailStore.<init>(NativeSailStore.java:95)
at org.eclipse.rdf4j.sail.nativerdf.NativeStore.initializeInternal(NativeStore.java:264)
at org.eclipse.rdf4j.sail.helpers.AbstractSail.init(AbstractSail.java:187)
at org.eclipse.rdf4j.repository.sail.SailRepository.initializeInternal(SailRepository.java:146)
at org.eclipse.rdf4j.repository.base.AbstractRepository.init(AbstractRepository.java:39)
After this error is printed, the initialization routine re-creates the context index, and the NativeStore can be used, see org.eclipse.rdf4j.sail.nativerdf.ContextStore.initializeContextCache(). Note particularly that I successfully reach the end of the test method.
Am I overseeing something or maybe doing something wrong? To me this really looks suspicious.
Thanks,
Andreas