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:
Mark Robert Miller 2013-01-25 19:17:31 +00:00
parent b6c177f703
commit 5cb1a812f0
2 changed files with 8 additions and 3 deletions

View File

@ -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
----------------------

View File

@ -917,10 +917,11 @@ 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;