RevisionCreatedListeners not asynchronous

Issue #39 new
Raza Ali created an issue

It appears that Grails event processing mechanism performs synchronous processing unless some configuration is performed. It seems that currently our event listeners (such as BiVes) responding to RevisionCreatedEvent operate on the same thread as the submission flow. This results in the submission flow crashing if BiVes has an error, as in the bug report below.

Comments (3)

  1. Raza Ali reporter

    The bug renders the system in an inconsistent state. If for any reason any of the listeners crashes, the submission service crashes. This rolls back the transaction in the database, but the files have been updated in the repository, meaning we have more revisions of the model in the repository than in the database.

  2. Raza Ali reporter

    Following the prescription from the link above leads to hibernate issues..specifically "org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here".

  3. Log in to comment