BUG: Lucene.Net.Codecs.SimpleText.SimpleTextFieldsReader: assertion fails 
randomly and when it does it causes an index out of range exception when 
building the message, so the message has been commented for the time being


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/291e3ae1
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/291e3ae1
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/291e3ae1

Branch: refs/heads/api-work
Commit: 291e3ae16ee96b6773b8640fdf1ec0ae9ee8a6ce
Parents: 43a270d
Author: Shad Storhaug <[email protected]>
Authored: Thu Mar 30 19:29:38 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Thu Mar 30 19:29:38 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Codecs/SimpleText/SimpleTextFieldsReader.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/291e3ae1/src/Lucene.Net.Codecs/SimpleText/SimpleTextFieldsReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/SimpleText/SimpleTextFieldsReader.cs 
b/src/Lucene.Net.Codecs/SimpleText/SimpleTextFieldsReader.cs
index 731ef52..1650adb 100644
--- a/src/Lucene.Net.Codecs/SimpleText/SimpleTextFieldsReader.cs
+++ b/src/Lucene.Net.Codecs/SimpleText/SimpleTextFieldsReader.cs
@@ -337,7 +337,9 @@ namespace Lucene.Net.Codecs.SimpleText
                     {
                         Debug.Assert(
                             StringHelper.StartsWith(_scratch, 
SimpleTextFieldsWriter.TERM) || StringHelper.StartsWith(_scratch, 
SimpleTextFieldsWriter.FIELD) ||
-                            StringHelper.StartsWith(_scratch, 
SimpleTextFieldsWriter.END), "scratch=" + _scratch.Utf8ToString());
+                            // LUCENENET TODO: This assert fails sometimes, 
which in turns causes _scratch.Utf8ToString() to throw an index out of range 
exception
+                            StringHelper.StartsWith(_scratch, 
SimpleTextFieldsWriter.END) /*, "scratch=" + _scratch.Utf8ToString()*/);
+
                         if (!first && (_liveDocs == null || 
_liveDocs.Get(_docId)))
                         {
                             _in.Seek(lineStart);

Reply via email to