added one more postprocessing low memory check

pull/1/head
Michael Peter Christen 11 years ago
parent 1bbc0fe6d2
commit e644981697

@ -1211,6 +1211,10 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri
String id;
while ((id = ids.take()) != AbstractSolrConnector.POISON_ID) {
this.crt.put(ASCII.getBytes(id), new double[]{0.0d,0.0d}); //{old value, new value}
if (MemoryControl.shortStatus()) {
ConcurrentLog.warn("CollectionConfiguration", "terminated CRHost collection during postprocessing because of short memory");
break;
}
}
} catch (final InterruptedException e2) {
}

Loading…
Cancel
Save