[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-293) AddLuceneWork is not being removed from the queue when DeleteLuceneWork is added for the same entity

Emmanuel Bernard (JIRA) noreply at atlassian.com
Tue Oct 28 11:01:04 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31543#action_31543 ] 

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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the hibernate-issues mailing list