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

OLogSegmentV2 cannot be cast to OLogSegmentV1 #7756

Closed
jamieb22 opened this issue Sep 19, 2017 · 1 comment
Closed

OLogSegmentV2 cannot be cast to OLogSegmentV1 #7756

jamieb22 opened this issue Sep 19, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@jamieb22
Copy link

OrientDB Version: 2.2.27

Java Version: 8

OS: Linux

Expected behavior

Upgraded Orient from 2.2.25 to 2.2.27. Expected database to open fine.

Actual behavior

om.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:297) at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:258) at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.openOrCreate(OrientBaseGraph.java:1918) at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.<init>(OrientBaseGraph.java:162) at com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.<init>(OrientTransactionalGraph.java:102)

at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedSt
        at com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.<init>(OrientTransactionalGraph.java:98)
        at com.tinkerpop.blueprints.impls.orient.OrientGraph.<init>(OrientGraph.java:103)
        ..
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassCastException: com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OLogSegmentV2 cannot be cast to com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OLogSegmentV1
        at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OLogSegmentV1.compareTo(OLogSegmentV1.java:397)
        at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OLogSegmentV1.compareTo(OLogSegmentV1.java:34)
        at java.util.ComparableTimSort.countRunAndMakeAscending(ComparableTimSort.java:320)
        at java.util.ComparableTimSort.sort(ComparableTimSort.java:188)
        at java.util.Arrays.sort(Arrays.java:1312)
        at java.util.Arrays.sort(Arrays.java:1506)
        at java.util.ArrayList.sort(ArrayList.java:1454)
        at java.util.Collections.sort(Collections.java:141)
        at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.ODiskWriteAheadLog.<init>(ODiskWriteAheadLog.java:282)
        at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.ODiskWriteAheadLog.<init>(ODiskWriteAheadLog.java:155)
        at com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.initWalAndDiskCache(OLocalPaginatedStorage.java:581)
        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:259)
        ... 13 common frames omitted

Steps to reproduce

@andrii0lomakin
Copy link
Member

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

5 participants