mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Fix for ALF-10561 SOLR stops indexing if it is given a property that is neither indexed or stored - it throws an exception
Fix ALF-10358 SOLR No easy way to get the current last TX indexed to monitor how the SOLR index is building git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30857 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -7,4 +7,8 @@
|
|||||||
<#if txn_has_next>,</#if>
|
<#if txn_has_next>,</#if>
|
||||||
</#list>
|
</#list>
|
||||||
]
|
]
|
||||||
|
<#if maxTxnCommitTime??>
|
||||||
|
,"maxTxnCommitTime": ${maxTxnCommitTime?c}
|
||||||
|
</#if>
|
||||||
|
|
||||||
}
|
}
|
@@ -61,6 +61,12 @@ public class TransactionsGet extends DeclarativeWebScript
|
|||||||
Map<String, Object> model = new HashMap<String, Object>(1, 1.0f);
|
Map<String, Object> model = new HashMap<String, Object>(1, 1.0f);
|
||||||
model.put("transactions", transactions);
|
model.put("transactions", transactions);
|
||||||
|
|
||||||
|
Long maxTxnCommitTime = solrTrackingComponent.getMaxTxnCommitTime();
|
||||||
|
if(maxTxnCommitTime != null)
|
||||||
|
{
|
||||||
|
model.put("maxTxnCommitTime", maxTxnCommitTime);
|
||||||
|
}
|
||||||
|
|
||||||
if (logger.isDebugEnabled())
|
if (logger.isDebugEnabled())
|
||||||
{
|
{
|
||||||
logger.debug("Result: \n\tRequest: " + req + "\n\tModel: " + model);
|
logger.debug("Result: \n\tRequest: " + req + "\n\tModel: " + model);
|
||||||
|
Reference in New Issue
Block a user