PASTAplus / DataPortal

EDI Data Portal
3 stars 3 forks source link

DataPortal should be resilient when Audit service is not available #122

Closed servilla closed 3 months ago

servilla commented 6 months ago

The DataPortal, specifically the MapBrowseServlet.java, should be resilient when the Audit service is unavailable. Presently, the DataPortal data package landing page relies on access to statistics provided by the Audit service to display read information. When the Audit service is down (for any reason), the DataPortal displays the exception message and fails to display any other information about the data package even though it may be available.

Recommendation: capture and log the Audit service exception and do not display any information regarding Audit service statistics.

Should also modify the etc/systemd/system/multi-user.target.wants\tomcat9.service file to replace Restart=on-abort to Restart=on-failure.