WeakIdentityHashMap should not be used in multi-threaded context.
One of the consequences (illustrated with test case) is that on high concurrency insert actions, FullTextIndexEventListener can loose some lucene works when flush is called out of a transaction.
see https://forum.hibernate.org/viewtopic.php?f=9&t=1029973
|