NightOwl888 commented on PR #938:
URL: https://github.com/apache/lucenenet/pull/938#issuecomment-2111511168
Looks like it still fails on Windows sometimes. I think it is more robust
than it was, though. I had to try with `[Repeat(25)]` to get it to fail. I will
try in Azure DevOps with the attribute to see whether it will fail on Linux or
macOS.
```console
TestNRTThreads_Mem
Source: TestIndexWriterOnJRECrash.cs line 51
Duration: 34.3 sec
Message:
Lucene.Net.Util.LuceneSystemException : CheckIndex failed
To reproduce this test result:
Option 1:
Apply the following assembly-level attributes:
[assembly: Lucene.Net.Util.RandomSeed("0x58551ebf9b5e10f6")]
[assembly: NUnit.Framework.SetCulture("en-AG")]
Option 2:
Use the following .runsettings file:
<RunSettings>
<TestRunParameters>
<Parameter name="tests:seed" value="0x58551ebf9b5e10f6" />
<Parameter name="tests:culture" value="en-AG" />
</TestRunParameters>
</RunSettings>
See the .runsettings documentation at:
https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file.
Stack Trace:
TestUtil.CheckIndex(Directory dir, Boolean crossCheckTermVectors) line 177
TestUtil.CheckIndex(Directory dir) line 162
TestIndexWriterOnJRECrash.CheckIndexes(FileSystemInfo file) line 322
TestIndexWriterOnJRECrash.CheckIndexes(FileSystemInfo file) line 329
TestIndexWriterOnJRECrash.CheckIndexes(FileSystemInfo file) line 329
TestIndexWriterOnJRECrash.TestNRTThreads_Mem() line 88
InvokeStub_TestIndexWriterOnJRECrash.TestNRTThreads_Mem(Object, Object,
IntPtr*)
MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Standard Output:
CheckIndex failed
Segments file=segments_2 numSegments=3 version=4.8 format=
1 of 3: name=_9 docCount=162
codec=Lucene46
compound=True
numFiles=4
size (MB)=0.34093189239501953
diagnostics = {source=merge, lucene.version=4.8.0, os=Microsoft Windows,
os.arch=X64, os.version=10.0.19045, java.version=8.0.1, java.vendor=Microsoft,
timestamp=15/05/2024 10:17:05 am, mergeMaxNumSegments=-1, mergeFactor=5}
has deletions [delGen=1]
test: open reader.........OK
test: check integrity.....OK
test: check live docs.....OK [32 deleted docs]
test: fields..............OK [26 fields]
test: field norms.........OK [21 fields]
test: terms, freq, prox...OK [6532 terms; 9562 terms/docs pairs; 12115
tokens]
test (ignoring deletes): terms, freq, prox...OK [7799 terms; 11823
terms/docs pairs; 14862 tokens]
test: stored fields.......OK [660 total field count; avg 5.076923 fields
per doc]
test: term vectors........OK [265 total vector count; avg 2.0384614
term/freq vector fields per doc]
test: docvalues...........OK [1 docvalues fields; 0 BINARY; 0 NUMERIC; 1
SORTED; 0 SORTED_SET]
2 of 3: name=_8 docCount=56
codec=Lucene46
compound=False
numFiles=33
size (MB)=0.18136310577392578
diagnostics = {source=flush, lucene.version=4.8.0, os=Microsoft Windows,
os.arch=X64, os.version=10.0.19045, java.version=8.0.1, java.vendor=Microsoft,
timestamp=15/05/2024 10:17:06 am}
has deletions [delGen=1]
test: open reader.........OK
test: check integrity.....OK
test: check live docs.....OK [2 deleted docs]
test: fields..............OK [13 fields]
test: field norms.........OK [8 fields]
test: terms, freq, prox...OK [3962 terms; 4916 terms/docs pairs; 7363
tokens]
test (ignoring deletes): terms, freq, prox...OK [4035 terms; 5024
terms/docs pairs; 7480 tokens]
test: stored fields.......OK [282 total field count; avg 5.2222223
fields per doc]
test: term vectors........OK [112 total vector count; avg 2.074074
term/freq vector fields per doc]
test: docvalues...........OK [1 docvalues fields; 0 BINARY; 0 NUMERIC; 1
SORTED; 0 SORTED_SET]
3 of 3: name=_7 docCount=44
codec=Lucene46
compound=False
numFiles=31
size (MB)=0.5951318740844727
diagnostics = {source=flush, lucene.version=4.8.0, os=Microsoft Windows,
os.arch=X64, os.version=10.0.19045, java.version=8.0.1, java.vendor=Microsoft,
timestamp=15/05/2024 10:17:06 am}
has deletions [delGen=1]
test: open reader.........OK
test: check integrity.....OK
test: check live docs.....OK [1 deleted docs]
test: fields..............OK [18 fields]
test: field norms.........OK [13 fields]
test: terms, freq, prox...ERROR:
Lucene.Net.Diagnostics.AssertionException: buffer.length=190007630
count=2142165037
at
Lucene.Net.Codecs.MockIntBlock.MockVariableInt32BlockPostingsFormat.MockInt32Factory.VariableInt32BlockIndexInputAnonymousClass.BlockReaderAnonymousClass.ReadBlock()
in
F:\Projects\lucenenet\src\Lucene.Net.TestFramework\Codecs\MockIntBlock\MockVariableIntBlockPostingsFormat.cs:line
110
at
Lucene.Net.Codecs.IntBlock.VariableInt32BlockIndexInput.Reader.MaybeSeek() in
F:\Projects\lucenenet\src\Lucene.Net.Codecs\IntBlock\VariableIntBlockIndexInput.cs:line
152
at Lucene.Net.Codecs.IntBlock.VariableInt32BlockIndexInput.Reader.Next()
in
F:\Projects\lucenenet\src\Lucene.Net.Codecs\IntBlock\VariableIntBlockIndexInput.cs:line
160
at
Lucene.Net.Codecs.Sep.SepPostingsReader.SepDocsAndPositionsEnum.NextDoc() in
F:\Projects\lucenenet\src\Lucene.Net.Codecs\Sep\SepPostingsReader.cs:line 561
at Lucene.Net.Index.CheckIndex.CheckFields(Fields fields, IBits liveDocs,
Int32 maxDoc, FieldInfos fieldInfos, Boolean doPrint, Boolean isVectors,
TextWriter infoStream, Boolean verbose) in
F:\Projects\lucenenet\src\Lucene.Net\Index\CheckIndex.cs:line 1156
at Lucene.Net.Index.CheckIndex.TestPostings(AtomicReader reader,
TextWriter infoStream, Boolean verbose) in
F:\Projects\lucenenet\src\Lucene.Net\Index\CheckIndex.cs:line 1651
Lucene.Net.Diagnostics.AssertionException: buffer.length=190007630
count=2142165037
at
Lucene.Net.Codecs.MockIntBlock.MockVariableInt32BlockPostingsFormat.MockInt32Factory.VariableInt32BlockIndexInputAnonymousClass.BlockReaderAnonymousClass.ReadBlock()
in
F:\Projects\lucenenet\src\Lucene.Net.TestFramework\Codecs\MockIntBlock\MockVariableIntBlockPostingsFormat.cs:line
110
at
Lucene.Net.Codecs.IntBlock.VariableInt32BlockIndexInput.Reader.MaybeSeek() in
F:\Projects\lucenenet\src\Lucene.Net.Codecs\IntBlock\VariableIntBlockIndexInput.cs:line
152
at Lucene.Net.Codecs.IntBlock.VariableInt32BlockIndexInput.Reader.Next()
in
F:\Projects\lucenenet\src\Lucene.Net.Codecs\IntBlock\VariableIntBlockIndexInput.cs:line
160
at
Lucene.Net.Codecs.Sep.SepPostingsReader.SepDocsAndPositionsEnum.NextDoc() in
F:\Projects\lucenenet\src\Lucene.Net.Codecs\Sep\SepPostingsReader.cs:line 561
at Lucene.Net.Index.CheckIndex.CheckFields(Fields fields, IBits liveDocs,
Int32 maxDoc, FieldInfos fieldInfos, Boolean doPrint, Boolean isVectors,
TextWriter infoStream, Boolean verbose) in
F:\Projects\lucenenet\src\Lucene.Net\Index\CheckIndex.cs:line 1156
at Lucene.Net.Index.CheckIndex.TestPostings(AtomicReader reader,
TextWriter infoStream, Boolean verbose) in
F:\Projects\lucenenet\src\Lucene.Net\Index\CheckIndex.cs:line 1651
test: stored fields.......OK [221 total field count; avg 5.139535 fields
per doc]
test: term vectors........ERROR [Exception of type
'Lucene.Net.Diagnostics.AssertionException' was thrown.]
Lucene.Net.Diagnostics.AssertionException: Exception of type
'Lucene.Net.Diagnostics.AssertionException' was thrown.
at
Lucene.Net.Codecs.IntBlock.FixedInt32BlockIndexInput.Index.Read(DataInput
indexIn, Boolean absolute) in
F:\Projects\lucenenet\src\Lucene.Net.Codecs\IntBlock\FixedIntBlockIndexInput.cs:line
177
at Lucene.Net.Codecs.Sep.SepPostingsReader.DecodeTerm(Int64[] empty,
DataInput input, FieldInfo fieldInfo, BlockTermState termState, Boolean
absolute) in
F:\Projects\lucenenet\src\Lucene.Net.Codecs\Sep\SepPostingsReader.cs:line 202
at
Lucene.Net.Codecs.BlockTerms.BlockTermsReader.FieldReader.SegmentTermsEnum.DecodeMetaData()
in
F:\Projects\lucenenet\src\Lucene.Net.Codecs\BlockTerms\BlockTermsReader.cs:line
986
at
Lucene.Net.Codecs.BlockTerms.BlockTermsReader.FieldReader.SegmentTermsEnum.DocsAndPositions(IBits
liveDocs, DocsAndPositionsEnum reuse, DocsAndPositionsFlags flags) in
F:\Projects\lucenenet\src\Lucene.Net.Codecs\BlockTerms\BlockTermsReader.cs:line
798
at Lucene.Net.Index.TermsEnum.DocsAndPositions(IBits liveDocs,
DocsAndPositionsEnum reuse) in
F:\Projects\lucenenet\src\Lucene.Net\Index\TermsEnum.cs:line 242
at Lucene.Net.Index.CheckIndex.TestTermVectors(AtomicReader reader,
TextWriter infoStream, Boolean verbose, Boolean crossCheckTermVectors) in
F:\Projects\lucenenet\src\Lucene.Net\Index\CheckIndex.cs:line 2146
test: docvalues...........OK [1 docvalues fields; 0 BINARY; 0 NUMERIC; 1
SORTED; 0 SORTED_SET]
FAILED
WARNING: fixIndex() would remove reference to this segment; full
exception:
Lucene.Net.Util.LuceneSystemException: Term Index test failed
at Lucene.Net.Index.CheckIndex.DoCheckIndex(IList`1 onlySegments) in
F:\Projects\lucenenet\src\Lucene.Net\Index\CheckIndex.cs:line 848
WARNING: 1 broken segments (containing 43 documents) detected
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]