LUCENE-3835: MergeThread throws unchecked exceptions from toString().

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1295069 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dawid Weiss 2012-02-29 11:44:03 +00:00
parent b9e9ef7ccc
commit 651a236696
1 changed files with 6 additions and 6 deletions

View File

@ -491,14 +491,14 @@ public class ConcurrentMergeScheduler extends MergeScheduler {
@Override @Override
public String toString() { public String toString() {
try {
MergePolicy.OneMerge merge = getRunningMerge(); MergePolicy.OneMerge merge = getRunningMerge();
if (merge == null) { if (merge == null) {
merge = startMerge; merge = startMerge;
} }
try {
return "merge thread: " + tWriter.segString(merge.segments); return "merge thread: " + tWriter.segString(merge.segments);
} catch (IOException ioe) { } catch (Throwable e) {
throw new RuntimeException(ioe); return "merge thread: " + e.toString();
} }
} }
} }