Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database corruption [moved] #78

Closed
lvca opened this issue Dec 10, 2012 · 0 comments
Closed

Database corruption [moved] #78

lvca opened this issue Dec 10, 2012 · 0 comments

Comments

@lvca
Copy link
Member

lvca commented Dec 10, 2012

This is Issue 78 moved from a Google Code project.
Added by 2010-07-26T19:28:33.000Z by lavikain...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).

Original labels: Type-Defect, Priority-Medium, v0.9.21

Original description

When documents are created, deleted and queried sequentially they will eventually create a database corruption. The exact point of is unknown.

There is a test case as attachment. It may be that it has to be run a few times to show the point of corruption, but so far it has happened every time.

Stack trace is:
--
java.lang.IllegalArgumentException: Negative position
    at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:698)
    at com.orientechnologies.orient.core.storage.fs.OFileMMap.map(OFileMMap.java:214)
    at com.orientechnologies.orient.core.storage.fs.OMMapManager.mapBuffer(OMMapManager.java:115)
    at com.orientechnologies.orient.core.storage.fs.OMMapManager.request(OMMapManager.java:101)
    at com.orientechnologies.orient.core.storage.fs.OMMapManager.request(OMMapManager.java:37)
    at com.orientechnologies.orient.core.storage.fs.OFileMMap.writeByte(OFileMMap.java:108)
    at com.orientechnologies.orient.core.storage.impl.local.OTxSegment.addLog(OTxSegment.java:102)
    at com.orientechnologies.orient.core.storage.impl.local.OStorageLocalTxExecuter.createRecord(OStorageLocalTxExecuter.java:71)
    at com.orientechnologies.orient.core.storage.impl.local.OStorageLocalTxExecuter.commitEntry(OStorageLocalTxExecuter.java:176)
    at com.orientechnologies.orient.core.storage.impl.local.OStorageLocalTxExecuter.commitAllPendingRecords(OStorageLocalTxExecuter.java:131)
    at com.orientechnologies.orient.core.storage.impl.local.OStorageLocal.commit(OStorageLocal.java:586)
    at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.executeCommit(ODatabaseRecordTx.java:102)
    at com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:34)
    at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.commit(ODatabaseRecordTx.java:65)
    at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.commit(ODatabaseRecordTx.java:1)
    at com.orientechnologies.orient.core.db.ODatabaseRecordWrapperAbstract.commit(ODatabaseRecordWrapperAbstract.java:52)
    at orienttest.Delete2Test.create(Delete2Test.java:62)
    at orienttest.Delete2Test.testDelete(Delete2Test.java:94)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant