throw IAE in OfflineSorter if incoming blob is too big

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1593544 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2014-05-09 14:10:56 +00:00
parent 63ba0e2337
commit 3ba830b507
1 changed files with 2 additions and 2 deletions

View File

@ -459,7 +459,6 @@ public class AnalyzingSuggester extends Lookup {
}
assert output.getPosition() == requiredLength: output.getPosition() + " vs " + requiredLength;
writer.write(buffer, 0, output.getPosition());
}
count++;
@ -839,7 +838,8 @@ public class AnalyzingSuggester extends Lookup {
replaceSep(automaton);
automaton = convertAutomaton(automaton);
assert SpecialOperations.isFinite(automaton);
// TODO: LUCENE-5660 re-enable this once we disallow massive suggestion strings
// assert SpecialOperations.isFinite(automaton);
// Get all paths from the automaton (there can be
// more than one path, eg if the analyzer created a