mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
MNT-22817: Fix flow when unable to retrieve node's metadata
This commit is contained in:
committed by
Vitor Moreira
parent
70ae436254
commit
9c4ddc2e52
+5
-1
@@ -1720,7 +1720,11 @@ public class SolrInformationServer implements InformationServer
|
||||
|
||||
Optional<Collection<NodeMetaData>> nodeMetaDatas = getNodesMetaDataFromRepository(nmdp);
|
||||
|
||||
if (nodeMetaDatas.isEmpty() || nodeMetaDatas.get().isEmpty()) return;
|
||||
if (nodeMetaDatas.isEmpty() || nodeMetaDatas.get().isEmpty())
|
||||
{
|
||||
// Using exception for flow handling to jump to error node processing.
|
||||
throw new Exception("Error loading node metadata from repository.");
|
||||
}
|
||||
|
||||
NodeMetaData nodeMetaData = nodeMetaDatas.get().iterator().next();
|
||||
if (node.getTxnId() == Long.MAX_VALUE)
|
||||
|
||||
Reference in New Issue
Block a user