[
https://issues.apache.org/jira/browse/LUCENE-5624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13976743#comment-13976743
]
Uwe Schindler commented on LUCENE-5624:
---------------------------------------
I think we should further clean this up. The code on close() is horrible and
makes no sense anymore. The whole NativeFSLock should be as short like
SimpleFSLock. No need forr all the extra code!
> nightly 'test-lock-factory' may leak file handles
> -------------------------------------------------
>
> Key: LUCENE-5624
> URL: https://issues.apache.org/jira/browse/LUCENE-5624
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/store
> Reporter: Robert Muir
> Fix For: 4.8, 4.9, 5.0
>
> Attachments: LUCENE-5624.patch
>
>
> https://builds.apache.org/job/Lucene-Solr-NightlyTests-trunk/556/console
> {noformat}
> [LockStressTest1] Exception in thread "main"
> java.nio.file.FileSystemException:
> /usr/home/hudson/hudson-slave/workspace/Lucene-Solr-NightlyTests-trunk/lucene/build/core/lockfactorytest/test-test.lock:
> Too many open files in system
> [LockStressTest1] at
> sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
> [LockStressTest1] at
> sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
> [LockStressTest1] at
> sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
> [LockStressTest1] at
> sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:176)
> [LockStressTest1] at
> java.nio.channels.FileChannel.open(FileChannel.java:287)
> [LockStressTest1] at
> java.nio.channels.FileChannel.open(FileChannel.java:334)
> [LockStressTest1] at
> org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:149)
> [LockStressTest1] at
> org.apache.lucene.store.VerifyingLockFactory$CheckedLock.obtain(VerifyingLockFactory.java:65)
> [LockStressTest1] at org.apache.lucene.store.Lock.obtain(Lock.java:77)
> [LockStressTest1] at
> org.apache.lucene.store.LockStressTest.main(LockStressTest.java:114)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]