Restoring OrientDB after a clumsy shutdown

When OrientDB disconnects from someone by enabling this checkbox, OrientDB is put into a state where data recovery occurs. Are there any recommendations on how to gracefully recover from such an ugly closure? We are looking for ways to restore the system ourselves during a power outage.

The general conclusion, as seen by many.

<DATE> WARNING {db=TestDb} segment file 'database.ocf' was not closed correctly last time [OSingleFileSegment]
<DATE> WARNING {db=TestDb} Storage TestDb was not closed properly. Will try to restore from write ahead log. [OLocalPaginatedStorage]
<DATE> INFO  {db=TestDb} Looking for last checkpoint... [OLocalPaginatedStorage]
<DATE> INFO  {db=TestDb} FULL checkpoint found. [OLocalPaginatedStorage]
<DATE> INFO  {db=TestDb} Data restore procedure from full checkpoint is started. Restore is performed from LSN OLogSequenceNumber{segment=0, position=322830} [OLocalPaginatedStorage]

Record com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OCheckpointEndRecord{lsn=OLogSequenceNumber{segment=0, position=322854}} will be skipped during data restore. [OLocalPaginatedStorage]{db=TestDb} Exception during storage data restore.
java.lang.ArrayIndexOutOfBoundsException: 33
    at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OAtomicUnitEndRecord.fromStream(OAtomicUnitEndRecord.java:59)
    at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OWALRecordsFactory.fromStream(OWALRecordsFactory.java:121)
    at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.ODiskWriteAheadLog.read(ODiskWriteAheadLog.java:1009)
    at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.restoreFrom(OAbstractPaginatedStorage.java:2261)
    at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.restoreFromFullCheckPoint(OAbstractPaginatedStorage.java:2231)
    at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.restoreFromCheckPoint(OAbstractPaginatedStorage.java:2220)
    at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.restoreFromWAL(OAbstractPaginatedStorage.java:2171)
    at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.restoreIfNeeded(OAbstractPaginatedStorage.java:1493)
    at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:154)
    at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:223)
    at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:631)
    at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:613)
    at com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract.authenticate(OServerCommandAuthenticatedDbAbstract.java:167)
    at com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract.beforeExecute(OServerCommandAuthenticatedDbAbstract.java:127)
    at com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetConnect.beforeExecute(OServerCommandGetConnect.java:50)
    at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.service(ONetworkProtocolHttpAbstract.java:171)
    at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.execute(ONetworkProtocolHttpAbstract.java:574)
    at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:69)

<DATE> SEVERE {db=TestDb} Internal server error:
com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '<location>/orientdb-enterprise-2.1-rc1/databases/TestDb' with mode=rw

      

+3


source to share





All Articles