You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2015/06/26 23:38:05 UTC

[jira] [Commented] (LUCENE-6618) MmapDirectory checkUnmapSupported is buggy

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

Uwe Schindler commented on LUCENE-6618:
---------------------------------------

OK, +1

After chatting with Robert, I understand now what the problem is: The main reason for the setAccessible is to have the same check as done while executing the unmapping. If you don't do the setAccessible,the reflection works, although it may fail later when doing the unmapping.

> MmapDirectory checkUnmapSupported is buggy
> ------------------------------------------
>
>                 Key: LUCENE-6618
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6618
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-6618.patch
>
>
> If you ban this by policy, it should return false.
> Instead today all writes will fail by default.



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