lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-5624) nightly 'test-lock-factory' may leak file handles
Date Tue, 22 Apr 2014 13:26:25 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-5624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Muir updated LUCENE-5624:
--------------------------------

    Attachment: LUCENE-5624.patch

Here is my proposed patch. But we can do the one-liner too.

I just hate the closeable violations, the hard-to-read code, etc.

We should also fix test-lock-factory to test simple as well.

> 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
>            Assignee: Robert Muir
>            Priority: Blocker
>             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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message