lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r880656 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/SimpleFSDirectory.cs
Date Mon, 16 Nov 2009 08:21:49 GMT
Author: digy
Date: Mon Nov 16 08:21:45 2009
New Revision: 880656

URL: http://svn.apache.org/viewvc?rev=880656&view=rev
Log:
LUCENENET-251 Index.TestDoc

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/SimpleFSDirectory.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/SimpleFSDirectory.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Store/SimpleFSDirectory.cs?rev=880656&r1=880655&r2=880656&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/SimpleFSDirectory.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/SimpleFSDirectory.cs Mon Nov 16 08:21:45
2009
@@ -261,6 +261,17 @@
 			public override void  FlushBuffer(byte[] b, int offset, int size)
 			{
 				file.Write(b, offset, size);
+                // {{dougsale-2.4.0}}
+                // FSIndexOutput.Flush
+                // When writing frequently with small amounts of data, the data isn't flushed
to disk.
+                // Thus, attempting to read the data soon after this method is invoked leads
to
+                // BufferedIndexInput.Refill() throwing an IOException for reading past EOF.
+                // Test\Index\TestDoc.cs demonstrates such a situation.
+                // Forcing a flush here prevents said issue.
+                // {{DIGY 2.9.0}}
+                // This code is not available in Lucene.Java 2.9.X.
+                // Can there be a indexing-performance problem?
+                file.Flush();
 			}
 			public override void  Close()
 			{



Mime
View raw message