lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [Lucene.Net] svn commit: r1082604 - /incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriter.cs
Date Thu, 17 Mar 2011 17:41:29 GMT
Author: digy
Date: Thu Mar 17 17:41:29 2011
New Revision: 1082604

URL: http://svn.apache.org/viewvc?rev=1082604&view=rev
Log:
[LUCENENET-399] TestCorruptionAfterDiskFullDuringMerge bug.

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriter.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Index/TestIndexWriter.cs?rev=1082604&r1=1082603&r2=1082604&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriter.cs Thu Mar 17 17:41:29 2011
@@ -5863,9 +5863,8 @@ namespace Lucene.Net.Index
                 for (int i = 0; i < trace.FrameCount; i++)
                 {
                     System.Diagnostics.StackFrame sf = trace.GetFrame(i);
-                    string ss1 = sf.GetFileName();
-                    string ss2 = sf.GetMethod().Name;
-                    if ("Lucene.Net.Index.SegmentMerger".Equals(sf.GetType().Name) &&
"MergeTerms".Equals(sf.GetMethod().Name) && !didFail1)
+                    string className = sf.GetMethod().DeclaringType.Namespace + "." + sf.GetMethod().DeclaringType.Name;
+                    if ("Lucene.Net.Index.SegmentMerger".Equals(className) && "MergeTerms".Equals(sf.GetMethod().Name)
&& !didFail1)
                     {
                         didFail1 = true;
                         throw new System.IO.IOException("fake disk full during mergeTerms");



Mime
View raw message