lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Mastracci (JIRA)" <>
Subject [jira] Commented: (LUCENE-753) Use NIO positional read to avoid synchronization in FSIndexInput
Date Fri, 22 Aug 2008 22:02:44 GMT


Matthew Mastracci commented on LUCENE-753:

This exception popped up out of the blue a few hours in.  No exceptions before it.  I'll see
if I can figure out whether it was caused by our index snapshotting or if it's a bug elsewhere
in NIOFSDirectory.

I haven't seen any exceptions like this with MMapDirectory, but it's possible there's something
that we're doing that isn't correct.

Caused by: java.nio.channels.ClosedChannelException
	at com.dotspots.analyzer.index.NIOFSDirectory$
	at com.dotspots.analyzer.index.NIOFSDirectory$NIOFSIndexInput.refill(
	at com.dotspots.analyzer.index.NIOFSDirectory$NIOFSIndexInput.readByte(
	at org.apache.lucene.index.SegmentTermEnum.scanTo(
	at org.apache.lucene.index.TermInfosReader.scanEnum(
	at org.apache.lucene.index.TermInfosReader.get(
	at org.apache.lucene.index.SegmentReader.docFreq(
	at org.apache.lucene.index.MultiSegmentReader.docFreq(
	at org.apache.lucene.index.MultiReader.docFreq(

> Use NIO positional read to avoid synchronization in FSIndexInput
> ----------------------------------------------------------------
>                 Key: LUCENE-753
>                 URL:
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Store
>            Reporter: Yonik Seeley
>            Assignee: Michael McCandless
>             Fix For: 2.4
>         Attachments:,,,,,,, FSDirectoryPool.patch, FSIndexInput.patch,
FSIndexInput.patch, LUCENE-753.patch, lucene-753.patch, lucene-753.patch
> As suggested by Doug, we could use NIO pread to avoid synchronization on the underlying
> This could mitigate any MT performance drop caused by reducing the number of files in
the index format.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message