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

Unable to create an entity after a DB migration #10375

Open
Linuski opened this issue Jan 10, 2025 · 0 comments
Open

Unable to create an entity after a DB migration #10375

Linuski opened this issue Jan 10, 2025 · 0 comments
Labels
Milestone

Comments

@Linuski
Copy link

Linuski commented Jan 10, 2025

OrientDB Version: 3.2.35

Java Version: 1.8

OS: Ubuntu 20.04

Expected behavior

Entity created without error

Actual behavior

Transaction aborded on exception: com.orientechnologies.orient.core.exception.OSequenceException: Error in transactional processing of Civilian.next() DB name="IKDB"
at com.orientechnologies.orient.core.metadata.sequence.OSequence.callRetry(OSequence.java:598)
at com.orientechnologies.orient.core.metadata.sequence.OSequenceCached.nextWork(OSequenceCached.java:189)
at com.orientechnologies.orient.core.metadata.sequence.OSequenceCached.next(OSequenceCached.java:166)
at com.airbus.ds.ikdb.model.service.core.database.OrientDatabaseAdminServiceImpl.getSequenceNextValue(OrientDatabaseAdminServiceImpl.java:118)
at com.airbus.ds.ikdb.model.service.core.database.OrientDatabaseAdminServiceImpl$Proxy$_$$_WeldSubclass.getSequenceNextValue$$super(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.weld.interceptor.proxy.TerminalAroundInvokeInvocationContext.proceedInternal(TerminalAroundInvokeInvocationContext.java:51)
at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:78)
at com.airbus.ds.ikdb.model.service.core.database.transaction.OrientDatabaseTransactionalInterceptor.onTransaction(OrientDatabaseTransactionalInterceptor.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
....
Caused by: java.lang.NullPointerException
at com.orientechnologies.orient.core.metadata.sequence.OSequence.getRecyclable(OSequence.java:431)
at com.orientechnologies.orient.core.metadata.sequence.OSequenceCached.reloadCrucialValues(OSequenceCached.java:103)
at com.orientechnologies.orient.core.metadata.sequence.OSequenceCached.access$000(OSequenceCached.java:36)
at com.orientechnologies.orient.core.metadata.sequence.OSequenceCached$1.call(OSequenceCached.java:197)
at com.orientechnologies.orient.core.metadata.sequence.OSequenceCached$1.call(OSequenceCached.java:191)
at com.orientechnologies.orient.core.metadata.sequence.OSequence.callRetry(OSequence.java:567)

Steps to reproduce

Start from an OrientDB 3.0.23
Add one entity
Export DB --> x.gz
Import x.gz into OrientDB 3.2.25
Try to add a new entity --> fail with error

@tglman tglman added the bug label Jan 13, 2025
@tglman tglman added this to the 3.2.x milestone Jan 13, 2025
tglman added a commit that referenced this issue Jan 28, 2025
tglman added a commit that referenced this issue Jan 28, 2025
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

2 participants