[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-329) Workers ThreadPools breaks ThreadLocals

Sanne Grinovero (JIRA) noreply at atlassian.com
Sat Jan 31 03:51:38 EST 2009


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

Sanne Grinovero commented on HSEARCH-329:
-----------------------------------------

The threadlocals is quite a hack. Could you elaborate on what your use case is? We could find a better alternative.

> Workers ThreadPools breaks ThreadLocals
> ---------------------------------------
>
>                 Key: HSEARCH-329
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-329
>             Project: Hibernate Search
>          Issue Type: Bug
>          Components: directory provider
>    Affects Versions: 3.1.0.GA
>            Reporter: Grégoire Rolland
>
> When Implementing multi-domains (multi-databases) FSDirectory based on thread local (to get the thread environment, database name, etc...), the threadpool used by workers "forgot" the thread local variables on the second call (for searching, indexing). Works great with 3.0.1 release, but not with 3.1.0.GA.

-- 
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