- Show a warning, in case the number of results is different from the number of the assignments (due to missing / double logging).
- Update Spring.
This commit is contained in:
parent
81b61b530f
commit
66d3f7bcb2
|
@ -1,5 +1,5 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'org.springframework.boot' version '2.7.8'
|
id 'org.springframework.boot' version '2.7.9'
|
||||||
id 'io.spring.dependency-management' version '1.1.0'
|
id 'io.spring.dependency-management' version '1.1.0'
|
||||||
id 'java'
|
id 'java'
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,6 +177,10 @@ public class PublicationsRetrieverPlugin {
|
||||||
|
|
||||||
public static void addUrlReportsToWorkerReport(Collection<Assignment> assignments)
|
public static void addUrlReportsToWorkerReport(Collection<Assignment> assignments)
|
||||||
{
|
{
|
||||||
|
if ( FileUtils.dataToBeLoggedList.size() != assignments.size() ) {
|
||||||
|
logger.warn("The number of the results (" + FileUtils.dataToBeLoggedList.size() + ") is different from the number of the given assignments (" + assignments.size() + ")!");
|
||||||
|
} // TODO - Should any other step be taken, except from just showing the log-message?
|
||||||
|
|
||||||
// Index the UrlIds with the DatasourceIds for quick-search later.
|
// Index the UrlIds with the DatasourceIds for quick-search later.
|
||||||
HashMap<String, String> urlIdsWithDatasourceIds = new HashMap<>(assignments.size());
|
HashMap<String, String> urlIdsWithDatasourceIds = new HashMap<>(assignments.size());
|
||||||
for ( Assignment assignment : assignments )
|
for ( Assignment assignment : assignments )
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class GeneralController {
|
||||||
finalMsg += " The worker will shutdown, after finishing current work.";
|
finalMsg += " The worker will shutdown, after finishing current work.";
|
||||||
|
|
||||||
logger.info(initMsg + finalMsg);
|
logger.info(initMsg + finalMsg);
|
||||||
return ResponseEntity.ok().body(finalMsg);
|
return ResponseEntity.ok().body(finalMsg + "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ public class GeneralController {
|
||||||
shouldShutdownWorker = false;
|
shouldShutdownWorker = false;
|
||||||
String finalMsg = " Any previous \"shutdownWorker\"-request is canceled. The \"maxAssignmentsBatchesToHandleBeforeShutdown\" will still be honored (if it's set).";
|
String finalMsg = " Any previous \"shutdownWorker\"-request is canceled. The \"maxAssignmentsBatchesToHandleBeforeShutdown\" will still be honored (if it's set).";
|
||||||
logger.info(initMsg + finalMsg);
|
logger.info(initMsg + finalMsg);
|
||||||
return ResponseEntity.ok().body(finalMsg);
|
return ResponseEntity.ok().body(finalMsg + "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue