diff --git a/search-services/alfresco-search/src/main/java/org/alfresco/solr/tracker/MetadataTracker.java b/search-services/alfresco-search/src/main/java/org/alfresco/solr/tracker/MetadataTracker.java index 82331fcf8..6b4eb22f0 100644 --- a/search-services/alfresco-search/src/main/java/org/alfresco/solr/tracker/MetadataTracker.java +++ b/search-services/alfresco-search/src/main/java/org/alfresco/solr/tracker/MetadataTracker.java @@ -789,6 +789,13 @@ protected Transactions getSomeTransactions(BoundedDeque txnsFound, Thread.currentThread().getId(), coreName, startTime, nextTxCommitTime); transactions = client.getTransactions(nextTxCommitTime, null, nextTxCommitTime + timeStep, null, maxResults); + // advance for next iteration in case alreadyFoundTransactions() yields true + startTime = nextTxCommitTime + timeStep; + } + else + { + // no point in additional iterations when there is no newer transaction + break; } }