Changes

Summary

  1. Update the Bulk-import procedure to check and gather the file-Locations, upon receiving the request, thus a. knowing the number of files that will be processed and b. instantly fail the procedure and return an error to the user, without submitting it to the ExecutorService. (details)
  2. - Upgrade the job-submission and evaluation process to track the name, type, size and time of each job. Now we know exactly what a failed or long-running job was all about. (details)
  3. - Improve error-handling of S3-connection issues. (details)
Commit 7e8310ed71f1492dd83acf4c8d9a7d140db88876 by Lampros Smyrnaios
Update the Bulk-import procedure to check and gather the file-Locations, upon receiving the request, thus a. knowing the number of files that will be processed and b. instantly fail the procedure and return an error to the user, without submitting it to the ExecutorService.
The file was modifiedsrc/main/java/eu/openaire/urls_controller/controllers/BulkImportController.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_controller/services/BulkImportServiceImpl.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_controller/services/BulkImportService.java (diff)
Commit 8debdd05c84547eb66cf44bd80b20e8163217975 by Lampros Smyrnaios
- Upgrade the job-submission and evaluation process to track the name, type, size and time of each job. Now we know exactly what a failed or long-running job was all about.
- Upgrade "checkResultsOfBackgroundTasks"-code to:
a) Skip tasks which are not going to finish within a reasonable time during the method's call. This avoids leaving this method waiting for hours for a few tasks to finish, instead of just rescheduling the check like it was meant to.
b) Improve efficiency by removing the checked jobs in-place by using the new ConcurrentHashMap.
- Simplifying the "addWorkerReport"-call logic.
The file was addedsrc/main/java/eu/openaire/urls_controller/models/TaskSubmissionInfo.java
The file was modifiedsrc/main/java/eu/openaire/urls_controller/controllers/UrlsController.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_controller/components/ScheduledTasks.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_controller/controllers/BulkImportController.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_controller/services/UrlsService.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_controller/services/UrlsServiceImpl.java (diff)
Commit 3b03af1412e33e0821a1130d2d1a85124e455e74 by Lampros Smyrnaios
- Improve error-handling of S3-connection issues.
- Improve a log-message.
The file was modifiedsrc/main/java/eu/openaire/urls_controller/services/BulkImportServiceImpl.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_controller/util/S3ObjectStore.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_controller/util/FileUtils.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_controller/services/UrlsServiceImpl.java (diff)