[
https://issues.apache.org/jira/browse/LUCENE-5431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shai Erera resolved LUCENE-5431.
--------------------------------
Resolution: Fixed
Fix Version/s: 4.7
5.0
Committed to trunk and 4x
> Add FSLockFactory.toString()
> ----------------------------
>
> Key: LUCENE-5431
> URL: https://issues.apache.org/jira/browse/LUCENE-5431
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/store
> Reporter: Shai Erera
> Assignee: Shai Erera
> Priority: Minor
> Fix For: 5.0, 4.7
>
> Attachments: LUCENE-5431.patch, LUCENE-5431.patch
>
>
> FSLockFactory doesn't override toString, which causes Dir.toString() to print
> the class.name@instance. I think it would be better if it printed e.g. the
> lockDir.
> I added it but TestCrashCausesCorruptIndex failed because it declares a
> Directory which doesn't override getLockID(), which returns toString(). I
> changed that Directory to extend FilterDirectory, and fixed FilterDirectory
> to override getLockID() to call in.getLockID().
> Will attach a patch shortly.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]