Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
adding the buffer size is not wrong but may cause confusing information when the buffer is cleaned after a buffer flush which is not then available in Solr since that is waiting for a commit. In such cases the counter would run backwards which is prevented by ignoring the buffer size.
Michael Peter Christen39615de3f92f
diff --git a/source/net/yacy/cora/federate/solr/connector/ConcurrentUpdateSolrConnector.java b/source/net/yacy/cora/federate/solr/connector/ConcurrentUpdateSolrConnector.javaindex 1d7489ca3..d484ce309 100644--- a/source/net/yacy/cora/federate/solr/connector/ConcurrentUpdateSolrConnector.java+++ b/source/net/yacy/cora/federate/solr/connector/ConcurrentUpdateSolrConnector.java@@ -158,7 +158,7 @@ public class ConcurrentUpdateSolrConnector implements SolrConnector {@Overridepublic long getSize() {- return Math.max(this.metadataCache.size(), this.connector.getSize() + this.docBuffer.size());+ return Math.max(this.metadataCache.size(), this.connector.getSize());}@Override