We are transitioning our application from 1.6.3 to 1.7-rc1 and have run
into an issue when re-deploying the application. When we first deploy the
application everything is working fine but if we redeploy it, it doesn't
seem
to be shutting down properly because during the restart we are getting the
following exception:
Caused by:
com.orientechnologies.orient.core.exception.OSerializationException: Cannot
load database's configuration. The database seems to be corrupted.
at
com.orientechnologies.orient.core.storage.impl.local.OStorageConfigurationSegment.load(OStorageConfigurationSegment.java:74)
at
com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.addDefaultClusters(OLocalPaginatedStorage.java:1933)
at
com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.open(OLocalPaginatedStorage.java:191)
... 137 more
Caused by: com.orientechnologies.common.concur.lock.OLockException: File
'/mnt/sysnet/person-db/database.ocf' is locked by another process, maybe
the database is in use by another process. Use the remote mode with a
OrientDB server to allow multiple access to the same database.
at
com.orientechnologies.orient.core.storage.fs.OAbstractFile.lock(OAbstractFile.java:375)
at
com.orientechnologies.orient.core.storage.fs.OAbstractFile.openChannel(OAbstractFile.java:641)
at
com.orientechnologies.orient.core.storage.fs.OAbstractFile.open(OAbstractFile.java:141)
at
com.orientechnologies.orient.core.storage.impl.local.OSingleFileSegment.open(OSingleFileSegment.java:53)
at
com.orientechnologies.orient.core.storage.impl.local.OStorageConfigurationSegment.load(OStorageConfigurationSegment.java:54)
During the shutdown process we close the pool first (OrientGraphFactory)
and then shutdown the storage as before:
final OStorage stg =
Orient.instance().getStorage(entityStore.getStorageName());
if (stg != null) {
stg.close();
}
The close on the storage is performed successfully. What are we missing
here? Is there a way to track who has the storage still open?
Thanks,
Odysseas
--
---
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/groups/opt_out.