mirror of https://github.com/apache/lucene.git
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:
parent
63ba0e2337
commit
3ba830b507
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue