mirror of https://github.com/apache/lucene.git
SOLR-4359: The RecentUpdates#update method should treat a problem reading the next record the same as a problem parsing the record - log the exception and break.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1438655 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b6c177f703
commit
5cb1a812f0
|
@ -83,6 +83,10 @@ Bug Fixes
|
|||
* SOLR-4349 : Admin UI - Query Interface does not work in IE
|
||||
(steffkes)
|
||||
|
||||
* SOLR-4359: The RecentUpdates#update method should treat a problem reading the
|
||||
next record the same as a problem parsing the record - log the exception and
|
||||
break. (Mark Miller)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -917,9 +917,10 @@ public class UpdateLog implements PluginInfoInitialized {
|
|||
reader = oldLog.getReverseReader();
|
||||
|
||||
while (numUpdates < numRecordsToKeep) {
|
||||
Object o = reader.next();
|
||||
if (o==null) break;
|
||||
Object o = null;
|
||||
try {
|
||||
o = reader.next();
|
||||
if (o==null) break;
|
||||
|
||||
// should currently be a List<Oper,Ver,Doc/Id>
|
||||
List entry = (List)o;
|
||||
|
|
Loading…
Reference in New Issue