Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [rdf4j-dev] NativeStore initialization with strange error in log
  • From: "Bart Hanssens (BOSA)" <bart.hanssens@xxxxxxxxxxxx>
  • Date: Mon, 30 Sep 2019 20:18:30 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bosa.fgov.be; dmarc=pass action=none header.from=bosa.fgov.be; dkim=pass header.d=bosa.fgov.be; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MUO5HB0febfcQ1WNqVJreTp8qM5CobV8UZcPp3Go8XU=; b=i7uZtfWULZR9V5x4Sx7vJVQmshiTjgomkGBc/WsmSw6uv+AHGaWElDkAyFQ8ggun48SNDUrEBi1esjxLx+RWcmIUHtnBoYU8irrfMPQlpI67dTgtONiQOf68oPW/pcRbzL0eDaq8hjylTTLmC8N1DqRLDTyuJ3pH7sEHrQoxNag4WWFIh5MSE39sipeTSR0CkO0egJol4If/Bh+KtOvNbsQDc3VwGCSpEM9+41UhtMPeORT/lttF1CS9zC26kgQ4qIls9uJtML2lPgWHjx+S3rlfvQwYvz9Dc+piJ/HzubeNRGkPqJtEypwIGCJ7sM8IG1GW3wGNiqqEbTBFSuiblQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bpzTB7xnmwj2fyryAU8RNlNQa2sDddfstNLKnD6At7i/bLBiPvAKfkxe29gldQAxefQ+oearP7bRKaJvwQo29YW0Y7ddSsFIbGWG4Rkf8FYrWHJPYcbtGc90Yk3Gc5xEIkFTiEAMv4lNcU1urzwXC6wUG4g1qPBfKB3+p4c7w2Y5jF5aPSzFnAQ63hZ3srRMp+dDfpvqV8DofK4UyCBoOSdIqHj6GFMV1txpmAFErVd0HaaSLaPMvOjdDN8SBJ9IaBAY37ssrqOqYgLKklYhJooFRTPZl2ZECrJdU+FRk5ctNDbUETAxJTj0OoPk7lvy6+4aQUkT9E3/u/7zGCiTow==
  • Delivered-to: rdf4j-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/rdf4j-dev>
  • List-help: <mailto:rdf4j-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/rdf4j-dev>, <mailto:rdf4j-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/rdf4j-dev>, <mailto:rdf4j-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHVd8tMTF1wiPdgA0yReBYU2jG/mKdEpzQw
  • Thread-topic: [rdf4j-dev] NativeStore initialization with strange error in log

Hi,

 

Hmz, I think this could be a regression or side-effect of  #1453 (native store context cache)

https://github.com/eclipse/rdf4j-storage/pull/253

 

Best regards

 

Bart

 

From: rdf4j-dev-bounces@xxxxxxxxxxx <rdf4j-dev-bounces@xxxxxxxxxxx> On Behalf Of Andreas Schwarte
Sent: maandag 30 september 2019 22:11
To: rdf4j developer discussions <rdf4j-dev@xxxxxxxxxxx>
Subject: [rdf4j-dev] NativeStore initialization with strange error in log

 

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


Back to the top