Thanks Luca. It works!

On Wednesday, May 28, 2014 9:57:16 PM UTC+1, Lvc@ wrote:
>
> Hi Fabrizio,
> set this at the beginning:
>
> OGlobalConfiguration.STORAGE_KEEP_OPEN.setValue(false);
>
> In this way when the last database instance will be closed, the storage 
> will be closed too. 
>
> Otherwise you should be very sure to soft shutdown the JVM (kill -1) or 
> bin/shutdown.sh.
>
> Lvc@
>
>
>
> On 28 May 2014 19:01, Fabrizio Fortino <[email protected]<javascript:>
> > wrote:
>
>> Hi there,
>>
>> I have a simple application that creates an embedded plocal graph 
>> database (OrientDB v 1.7).
>> It basically creates some vertexes connected by edges.
>> After that the database is shut down using *graphDb.getRawGraph().close() 
>> *(I have tried also *graphDb.shutdown() *).
>>
>> If I try to open the database from the console I always get the following 
>> warning:
>>
>> 2014-05-28 17:41:38:252 WARN segment file 'database.ocf' was not closed 
>> correctly last time [OSingleFileSegment]
>> 2014-05-28 17:41:38:262 WARN Storage matching_14340 was not closed 
>> properly. Will try to restore from write ahead log. [
>> OLocalPaginatedStorage]
>> 2014-05-28 17:41:38:307 WARN Record com.orientechnologies.orient.core.
>> storage.impl.local.paginated.wal.OCheckpointEndRecord{lsn=
>> OLogSequenceNumber{segment=0, position=190119}} will be skipped during 
>> data restore. [OLocalPaginatedStorage]OK
>>
>>
>> How can I properly close the database to avoid this kind of situation?
>>
>> Thanks,
>> Fabrizio
>>
>> -- 
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "OrientDB" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to