[
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-293?pag...
]
Emmanuel Bernard commented on HSEARCH-293:
------------------------------------------
Stupid oversight on my side. Here is what happens wo unit test :)
Daniel did you try by replacing
for (LuceneWork luceneWork : toDelete) {
toDelete.remove( luceneWork );
}
with
for (LuceneWork luceneWork : toDelete) {
queue.remove( luceneWork );
}
Did it solve your problem?
AddLuceneWork is not being removed from the queue when
DeleteLuceneWork is added for the same entity
----------------------------------------------------------------------------------------------------
Key: HSEARCH-293
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-293
Project: Hibernate Search
Issue Type: Bug
Components: engine
Affects Versions: 3.1.0.Beta2
Reporter: Daniel Claesén
There's an issue in the addWorkToQueue function in the DocumentBuilder class. If the
work type is delete and there is an AddLuceneWork for the same entity in the queue it is
added to the toDelete list. But when looping through the toDelete list the items are not
removed from the LuceneWork queue, only from the toDelete list.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira