cuba-platform / fts

Full-Text Search Addon
https://www.cuba-platform.com/
Apache License 2.0
4 stars 1 forks source link

FtsManager.reindexNextBatch method doesn't work #79

Closed Ilya-c closed 3 years ago

Ilya-c commented 3 years ago

Environment

Description of the bug or enhancement

Can be reproduced in the JMX console

This will cause exception:

java.lang.IllegalStateException: No active transaction
    at com.haulmont.cuba.core.sys.PersistenceImpl.getEntityManager(PersistenceImpl.java:170)
    at com.haulmont.cuba.core.sys.PersistenceImpl.getEntityManager(PersistenceImpl.java:164)
    at com.haulmont.fts.core.sys.EntitiesCollector.loadResults(EntitiesCollector.java:110)
    at com.haulmont.fts.core.app.FtsManager.executeInStoreTx(FtsManager.java:558)
    at com.haulmont.fts.core.app.FtsManager.reindexNextBatch(FtsManager.java:447)