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

Spatial indexes are dropped on container reboot #9915

Closed
rrowlands opened this issue Jan 27, 2023 · 2 comments
Closed

Spatial indexes are dropped on container reboot #9915

rrowlands opened this issue Jan 27, 2023 · 2 comments
Labels
Milestone

Comments

@rrowlands
Copy link

rrowlands commented Jan 27, 2023

OrientDB Version: 3.2.13 (from docker hub)

When having a database with a spatial index, if the v3.2 OrientDB Docker container is rebooted the spatial index gets dropped. These same exact indexes work just fine on OrientDB v3.0. Please see stack trace and attached logs.

2023-01-27 16:36:21:831 SEVER {db=osmre} Error during load of index 'i10223bc155bc43649a8faa12bf659' [OLuceneSpatialIndex]
java.lang.NullPointerException
	at com.orientechnologies.spatial.factory.OSpatialStrategyFactory.createStrategy(OSpatialStrategyFactory.java:48)
	at com.orientechnologies.spatial.engine.OLuceneGeoSpatialIndexEngine.createSpatialStrategy(OLuceneGeoSpatialIndexEngine.java:56)
	at com.orientechnologies.spatial.engine.OLuceneSpatialIndexEngineAbstract.init(OLuceneSpatialIndexEngineAbstract.java:75)
	at com.orientechnologies.spatial.engine.OLuceneSpatialIndexEngineDelegator.init(OLuceneSpatialIndexEngineDelegator.java:85)
	at com.orientechnologies.lucene.index.OLuceneIndexNotUnique.lambda$onIndexEngineChange$3(OLuceneIndexNotUnique.java:296)
	at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.doCallIndexEngine(OAbstractPaginatedStorage.java:3218)
	at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.callIndexEngine(OAbstractPaginatedStorage.java:3197)
	at com.orientechnologies.lucene.index.OLuceneIndexNotUnique.onIndexEngineChange(OLuceneIndexNotUnique.java:291)
	at com.orientechnologies.orient.core.index.OIndexAbstract.loadFromConfiguration(OIndexAbstract.java:324)
	at com.orientechnologies.orient.core.index.OIndexManagerShared.fromStream(OIndexManagerShared.java:1018)
	at com.orientechnologies.orient.core.index.OIndexManagerShared.load(OIndexManagerShared.java:111)
	at com.orientechnologies.orient.core.db.OSharedContextEmbedded.load(OSharedContextEmbedded.java:91)
	at com.orientechnologies.orient.core.db.document.ODatabaseDocumentEmbedded.loadMetadata(ODatabaseDocumentEmbedded.java:336)
	at com.orientechnologies.orient.core.db.document.ODatabaseDocumentEmbedded.init(ODatabaseDocumentEmbedded.java:201)
	at com.orientechnologies.orient.core.db.OrientDBEmbedded.open(OrientDBEmbedded.java:503)
	at com.orientechnologies.orient.core.db.OrientDBDistributed.open(OrientDBDistributed.java:254)
	at com.orientechnologies.orient.core.db.OrientDBEmbedded.open(OrientDBEmbedded.java:440)
	at com.orientechnologies.orient.core.db.OrientDBDistributed.open(OrientDBDistributed.java:239)
	at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:842)
	at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:835)
	at com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract.authenticate(OServerCommandAuthenticatedDbAbstract.java:194)
	at com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract.beforeExecute(OServerCommandAuthenticatedDbAbstract.java:136)
	at com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetConnect.beforeExecute(OServerCommandGetConnect.java:55)
	at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.service(ONetworkProtocolHttpAbstract.java:239)
	at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.execute(ONetworkProtocolHttpAbstract.java:800)
	at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:68)

My index is defined as:

image

Full logs:

orientdb-spatial-drop.txt

@tglman
Copy link
Member

tglman commented Feb 8, 2023

Hi,

This should be fixed in the 3.2.16 just released, could you please verify it ?

Regards

@tglman tglman added this to the 3.2.16 milestone Feb 8, 2023
@tglman tglman added the bug label Feb 8, 2023
@rrowlands
Copy link
Author

Working for me. Thanks

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