lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-6129) Assert that terms enums, docs enums and doc values are not leaked across threads
Date Mon, 22 Dec 2014 17:23:13 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-6129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255952#comment-14255952
] 

Dawid Weiss commented on LUCENE-6129:
-------------------------------------

Btw. this is something that fits ideally with aspectj... You just create a pointcut on any
constructor of a given class, add a field to it, and a before pointcut on any public method...
It's really a pity it's still a niche technology.

> Assert that terms enums, docs enums and doc values are not leaked across threads
> --------------------------------------------------------------------------------
>
>                 Key: LUCENE-6129
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6129
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-6129.patch
>
>
> Terms enums, docs enums and doc values should only be consumed in the thread that they
have been acquired in. We could add checks to Asserting* to make sure they never leak?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message