Hi Brian,
Yes that is because wal is corrupted and can not be used.
I will fix it today.


On Wed, Jun 25, 2014 at 6:05 PM, Brian O'Keefe <[email protected]>
wrote:

> I just noticed the following in the server log as well...it looks like the
> server is ok, but in reality certain clusters are corrupted.
>
> 2014-06-25 10:57:28:247 INFO OrientDB Server v1.7.4 is active. [OServer]
> 2014-06-25 10:57:36:331 WARN segment file 'database.ocf' was not closed
> correctly last time [OSingleFileSegment]
> 2014-06-25 10:57:36:390 SEVE Can not restore 0 WAL master record for
> storage linked crc check is failed [OWriteAheadLog]
>
> 2014-06-25 10:57:37:324 WARN Storage linked was not closed properly. Will
> try to restore from write ahead log. [OLocalPa
> ginatedStorage]
> 2014-06-25 10:57:37:325 SEVE Restore is not possible because write ahead
> log is empty. [OLocalPaginatedStorage]
> 2014-06-25 10:57:37:350 INFO Storage data restore was completed
> [OLocalPaginatedStorage]
>
>
> On Wednesday, June 25, 2014 11:03:13 AM UTC-4, Brian O'Keefe wrote:
>>
>> Hi all,
>>
>> I've seen this happen quite a few times while I've been evaluating 1.7.x
>> (latest 1.7.4).  I didn't report it because I thought it was related to the
>> shutdown issue that was fixed in 1.7.4, but it still happens with the
>> latest version.
>>
>> What happens is that periodically when I start a process that tries to
>> load graph data via the Java API, I get the following error appearing over
>> and over in the logs and an exception occurs in the program
>>
>> -1
>> -> java.util.ArrayList.elementData(ArrayList.java:400)
>> -> java.util.ArrayList.get(ArrayList.java:413)
>> -> com.orientechnologies.orient.core.storage.impl.local.
>> paginated.wal.OWriteAheadLog.flush(OWriteAheadLog.java:733)
>> -> com.orientechnologies.orient.core.index.hashindex.local.
>> cache.OWOWCache.flushPage(OWOWCache.java:1082)
>> -> com.orientechnologies.orient.core.index.hashindex.local.
>> cache.OWOWCache.access$1000(OWOWCache.java:67)
>> -> com.orientechnologies.orient.core.index.hashindex.local.
>> cache.OWOWCache$PeriodicFlushTask.iterateBySubRing(OWOWCache.
>> java:291)
>> -> com.orientechnologies.orient.core.index.hashindex.local.
>> cache.OWOWCache$PeriodicFlushTask.flushRing(OWOWCache.java:24
>> 6)
>> -> com.orientechnologies.orient.core.index.hashindex.local.
>> cache.OWOWCache$PeriodicFlushTask.run(OWOWCache.java:222)
>> -> java.util.concurrent.Executors$RunnableAdapter.
>> call(Executors.java:471)
>> -> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
>> -> java.util.concurrent.ScheduledThreadPoolExecutor$
>> ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>>
>> -> java.util.concurrent.ScheduledThreadPoolExecutor$
>> ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>> -> java.util.concurrent.ThreadPoolExecutor.runWorker(
>> ThreadPoolExecutor.java:1145)
>> -> java.util.concurrent.ThreadPoolExecutor$Worker.run(
>> ThreadPoolExecutor.java:615)
>> -> java.lang.Thread.run(Thread.java:744)
>>
>> If I restart the database and the client, and try to run my process
>> again, I get the following exception and basically the database is FUBAR:
>> Exception in thread "main" 
>> com.orientechnologies.orient.core.exception.ODatabaseException:
>> Error on retrieving record #12:0 (cluster: person)
>>     at com.orientechnologies.orient.core.db.raw.ODatabaseRaw.read(
>> ODatabaseRaw.java:252)
>>     at com.orientechnologies.orient.core.db.record.
>> ODatabaseRecordAbstract.executeReadRecord(ODatabaseRecordAbstract.java:
>> 1017)
>>     at com.orientechnologies.orient.core.tx.OTransactionNoTx.
>> loadRecord(OTransactionNoTx.java:65)
>>     at com.orientechnologies.orient.core.db.record.
>> ODatabaseRecordTx.load(ODatabaseRecordTx.java:264)
>>     at com.orientechnologies.orient.core.db.record.
>> ODatabaseRecordTx.load(ODatabaseRecordTx.java:40)
>>     at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.
>> executeSearchRecord(OCommandExecutorSQLSelect.java:437)
>>     at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.
>> fetchFromTarget(OCommandExecutorSQLSelect.java:918)
>>     at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.
>> fetchValuesFromIndexCursor(OCommandExecutorSQLSelect.java:1183)
>>     at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.
>> searchForIndexes(OCommandExecutorSQLSelect.java:1105)
>>     at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.
>> searchInClasses(OCommandExecutorSQLSelect.java:647)
>>     at com.orientechnologies.orient.core.sql.
>> OCommandExecutorSQLResultsetAbstract.assignTarget(
>> OCommandExecutorSQLResultsetAbstract.java:134)
>>     at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.
>> assignTarget(OCommandExecutorSQLSelect.java:402)
>>     at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.
>> executeSearch(OCommandExecutorSQLSelect.java:386)
>>     at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.
>> execute(OCommandExecutorSQLSelect.java:358)
>>     at com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.
>> execute(OCommandExecutorSQLDelegate.java:60)
>>     at com.orientechnologies.orient.core.storage.OStorageEmbedded.
>> executeCommand(OStorageEmbedded.java:94)
>>     at com.orientechnologies.orient.core.storage.OStorageEmbedded.
>> command(OStorageEmbedded.java:83)
>>     at com.orientechnologies.orient.core.command.
>> OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:59)
>>     at com.orientechnologies.orient.server.network.protocol.
>> binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1181)
>>     at com.orientechnologies.orient.server.network.protocol.
>> binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:
>> 340)
>>     at com.orientechnologies.orient.server.network.protocol.binary.
>> OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract
>> .java:169)
>>     at com.orientechnologies.common.thread.OSoftThread.run(
>> OSoftThread.java:45)
>> Caused by: com.orientechnologies.orient.core.exception.ODatabaseException:
>> Error during data decompression.
>>     at com.orientechnologies.orient.core.compression.impl.
>> OSnappyCompression.uncompress(OSnappyCompression.java:54)
>>     at com.orientechnologies.orient.core.storage.impl.local.
>> paginated.OPaginatedCluster.readRecord(OPaginatedCluster.java:635)
>>     at com.orientechnologies.orient.core.storage.impl.local.paginated.
>> OLocalPaginatedStorage.readRecord(OLocalPaginatedStorage.java:1481)
>>     at com.orientechnologies.orient.core.storage.impl.local.paginated.
>> OLocalPaginatedStorage.readRecord(OLocalPaginatedStorage.java:745)
>>     at com.orientechnologies.orient.core.db.raw.ODatabaseRaw.read(
>> ODatabaseRaw.java:246)
>>     ... 21 more
>> Caused by: java.io.IOException: FAILED_TO_UNCOMPRESS(5)
>>     at org.xerial.snappy.SnappyNative.throw_error(SnappyNative.java:84)
>>     at org.xerial.snappy.SnappyNative.rawUncompress(Native Method)
>>     at org.xerial.snappy.Snappy.rawUncompress(Snappy.java:444)
>>     at org.xerial.snappy.Snappy.uncompress(Snappy.java:480)
>>     at com.orientechnologies.orient.core.compression.impl.
>> OSnappyCompression.uncompress(OSnappyCompression.java:50)
>>     ... 25 more
>>
>>  --
>
> ---
> 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.
>



-- 
Best regards,
Andrey Lomakin.

Orient Technologies
the Company behind OrientDB

-- 

--- 
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