-
Notifications
You must be signed in to change notification settings - Fork 872
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
Lucene Spatial Index is closed without any reason #7585
Comments
I'm fixing. BTW, the legacy spatial index is deprecated and will be removed in the future. |
??? We are using the Spatial Module (http://central.maven.org/maven2/com/orientechnologies/orientdb-spatial/2.2.23/orientdb-spatial-2.2.23-dist.jar) |
ok, but you are using the legacy part: http://orientdb.com/docs/last/Spatial-Index.html#legacy not the one with functions |
just pushed the fix: orientechnologies/orientdb-spatial@0fec0b9 just put this jar instead of the 2.2.24 |
..this is what we do:DbSchema.createSchema: Photo.longitude (type=DOUBLE) may be null (CREATE INDEX idxlocation ON Photo(latitude,longitude) SPATIAL ENGINE LUCENE METADATA {ignoreNullValues: true}) |
@EricSchreiner did you try latest fix from @robfrank ? |
Starting from 2.2, the new spatial module allow indexing of points and other spatial structures, such as lines and polygons: http://orientdb.com/docs/last/Spatial-Index.html#geometry-data It needs that spatial data are stored in specilized classes: http://orientdb.com/docs/last/Spatial-Index.html#geometry-data-example and offers a lot of functions (ST_: Spatial type from The Open Geospatial Consortium) to handle spatial queries: http://orientdb.com/docs/last/Spatial-Index.html#functions The legacy api can index only points and offers only near and within operators. So, don't worry, the legacy API will be there on 2.2.x. But if you can migrate to the new api, you will gain a lot of benefits. |
Cool, closing it. |
@lvca any idea when the next hotfix will come? |
we have just released 2.2.24, I think at least 2 weeks. |
... 2 weeks for a serious Bug seems to be a long time..... |
Is this issue fixed in 2.2.x? Confirmed? |
@lvca yes, it's fixed, maybe we can release sooner...? Luigi |
Reproduced on latest snapshot |
@Laa he uses a 2.2.23 with lucene jar from 2.2.26-SNAPSHOT. But this was fixed on 2.2.25. |
@robfrank sorry issue still persist in 2.2.26 |
You see this from the latest log published in #7586 |
Ok, there was still a sync problem on autoclose of indexes. Testing |
this problem should be fixed in 2.2.26. Can confirm? |
@robfrank confirmed |
OrientDB Version: 2.2.24 (Embedded API)
Java Version: 1.8
OS: Windows 10
Expected behavior
Lucene Spatial Index is closed without any reason. ( org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed) This does not happen in 2.2.22 or 2.2.23
Actual behavior
ERROR@ 15:18:08.644 Exception Error PhotoCrawler.DirectoryConsumer.handlePhotoUpdate:D:\Arbeit\Photos\1988\Portugal\Portugal-Spanien-DEV-PIC_0104.jpg: com.orientechnologies.orient.core.exception.ODatabaseException: Error during saving of record with rid #25:1755 DB name="db.2.2.22"
EXCEP@ ============================================================
EXCEP@ Exception at: 2017-07-25 15:18:08
EXCEP@ Msg:
EXCEP@ Error during saving of record with rid #25:1755
DB name="db.2.2.22"
EXCEP@ ------------------------------------------------------------
EXCEP@ com.orientechnologies.orient.core.exception.ODatabaseException: Error during saving of record with rid #25:1755
EXCEP@ DB name="db.2.2.22"
EXCEP@ at com.orientechnologies.orient.core.tx.OTransactionNoTx.saveRecord(OTransactionNoTx.java:203)
EXCEP@ at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:2758)
EXCEP@ at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:2638)
EXCEP@ at de.contecon.picapport.db.Photo.saveToDocument(Photo.java:226)
EXCEP@ at de.contecon.picapport.db.Photo.insert(Photo.java:169)
EXCEP@ at de.contecon.picapport.db.DbWrapper.insertPhoto(DbWrapper.java:417)
EXCEP@ at de.contecon.picapport.db.DbWrapper.updatePhoto(DbWrapper.java:352)
EXCEP@ at de.contecon.picapport.directoryservices.PhotoCrawler$DirectoryConsumer.handlePhotoUpdate(PhotoCrawler.java:403)
EXCEP@ at de.contecon.picapport.directoryservices.PhotoCrawler$DirectoryConsumer.consume(PhotoCrawler.java:278)
EXCEP@ at de.contecon.picapport.directoryservices.PhotoCrawler$DirectoryConsumer.run(PhotoCrawler.java:190)
EXCEP@ at java.lang.Thread.run(Unknown Source)
EXCEP@ Caused by: com.orientechnologies.orient.core.exception.OStorageException: Cannot put key value entry in index
EXCEP@ DB name="db.2.2.22"
EXCEP@ at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.doUpdateIndexEntry(OAbstractPaginatedStorage.java:2256)
EXCEP@ at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.updateIndexEntry(OAbstractPaginatedStorage.java:2153)
EXCEP@ at com.orientechnologies.lucene.index.OLuceneIndexNotUnique.put(OLuceneIndexNotUnique.java:317)
EXCEP@ at com.orientechnologies.spatial.index.OLuceneSpatialIndex.put(OLuceneSpatialIndex.java:50)
EXCEP@ at com.orientechnologies.spatial.index.OLuceneSpatialIndex.put(OLuceneSpatialIndex.java:35)
EXCEP@ at com.orientechnologies.orient.core.index.OClassIndexManager.putInIndex(OClassIndexManager.java:659)
EXCEP@ at com.orientechnologies.orient.core.index.OClassIndexManager.addIndexEntry(OClassIndexManager.java:554)
EXCEP@ at com.orientechnologies.orient.core.index.OClassIndexManager.addIndexesEntries(OClassIndexManager.java:541)
EXCEP@ at com.orientechnologies.orient.core.index.OClassIndexManager.onRecordAfterCreate(OClassIndexManager.java:419)
EXCEP@ at com.orientechnologies.orient.core.hook.ODocumentHookAbstract.onTrigger(ODocumentHookAbstract.java:221)
EXCEP@ at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.callbackHooks(ODatabaseDocumentTx.java:1144)
EXCEP@ at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.callbackHookSuccess(ODatabaseDocumentTx.java:3273)
EXCEP@ at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.executeSaveRecord(ODatabaseDocumentTx.java:2237)
EXCEP@ at com.orientechnologies.orient.core.tx.OTransactionNoTx.saveNew(OTransactionNoTx.java:241)
EXCEP@ at com.orientechnologies.orient.core.tx.OTransactionNoTx.saveRecord(OTransactionNoTx.java:171)
EXCEP@ ... 10 more
EXCEP@ Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
EXCEP@ at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:719)
EXCEP@ at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:733)
EXCEP@ at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1471)
EXCEP@ at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1254)
EXCEP@ at org.apache.lucene.index.TrackingIndexWriter.addDocument(TrackingIndexWriter.java:112)
EXCEP@ at com.orientechnologies.lucene.engine.OLuceneIndexEngineAbstract.addDocument(OLuceneIndexEngineAbstract.java:155)
EXCEP@ at com.orientechnologies.spatial.engine.OLuceneLegacySpatialIndexEngine.put(OLuceneLegacySpatialIndexEngine.java:167)
EXCEP@ at com.orientechnologies.spatial.engine.OLuceneSpatialIndexEngineDelegate.put(OLuceneSpatialIndexEngineDelegate.java:144)
EXCEP@ at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.doUpdateIndexEntry(OAbstractPaginatedStorage.java:2242)
EXCEP@ ... 24 more
Steps to reproduce
The text was updated successfully, but these errors were encountered: