AtlasOfLivingAustralia / biocache-service

Occurrence & mapping webservices
https://biocache-ws.ala.org.au/ws/
Other
9 stars 26 forks source link

Restarting biocache-service is (possibly) not restarting downloads interrupted #901

Open adam-collins opened 3 weeks ago

adam-collins commented 3 weeks ago

This is speculation on errors in the log.

When biocache-service downloads are interrupted by a shutdown, a user's details, e.g. email and roles, are not properly saved and recalled.

The error is

java.lang.NullPointerException
        at java.base/java.util.Objects.requireNonNull(Objects.java:222)
        at java.base/java.util.ArrayList.batchRemove(ArrayList.java:848)
        at java.base/java.util.ArrayList.retainAll(ArrayList.java:843)
        at au.org.ala.biocache.service.DownloadService.getSensitiveFq(DownloadService.java:1065)
        at au.org.ala.biocache.dao.SearchDAOImpl.writeResultsFromIndexToStream(SearchDAOImpl.java:603)
...
        at au.org.ala.biocache.service.DownloadService.writeQueryToStream(DownloadService.java:435)
        at au.org.ala.biocache.service.DownloadService$DownloadRunnable.run(DownloadService.java:1195)