ucsdlib / damsrepo

DAMS Repository
Other
4 stars 2 forks source link

Inspect and fix the javax.jms.IllegalStateException with SOLR index request #63

Closed lsitu closed 6 years ago

lsitu commented 6 years ago

Descriptive summary

Inspect and fix the issue of javax.jms.IllegalStateException that cause the failure of adding items for SOLR index. See @rstanonik's comment on slack dams channel:

I see the following errors in the lib-hydratail-staging tomcat log
Server: Apache-Coyote/1.1; Content-Type: application/json; Content-Length: 292; Date: Tue, 10 Jul 2018 14:58:07 GMT; Connection: close; {"request":"\/objects\/bd8723769x\/index","queueSuccess":1,"message":"Indexing failures.","priority":"4","queueTotal":1,"errors":["Error sending object to queue: javax.jms.IllegalStateException: The Session is closed"],"statusCode":500,"timestamp":"2018-07-10T07:58:07-0700","status":"ERROR"}
2018-07-10 07:58:07,259 INFO edu.ucsd.library.xdre.utils.DAMSClient: POST https://lib-hydratail-staging.ucsd.edu:8443/dams/api/objects/bd8723769x/index?format=json&ts=dams&priority=4&user=lsitu&client=Custom+2.64-0-g7a43f64d2d2bb36c58e3f5e7ec4fd9b37094a5d7: ERROR status code 500. Error Indexing failures.
java.io.IOException: POST https://lib-hydratail-staging.ucsd.edu:8443/dams/api/objects/bd8723769x/index?format=json&ts=dams&priority=4&user=lsitu&client=Custom+2.64-0-g7a43f64d2d2bb36c58e3f5e7ec4fd9b37094a5d7: ERROR status code 500. Error Indexing failures.
2018-07-10 07:58:07,259 ERROR edu.ucsd.library.xdre.collection.CollectionHandler: SOLR update failed for bd8723769x: POST https://lib-hydratail-staging.ucsd.edu:8443/dams/api/objects/bd8723769x/index?format=json&ts=dams&priority=4&user=lsitu&client=Custom+2.64-0-g7a43f64d2d2bb36c58e3f5e7ec4fd9b37094a5d7: ERROR status code 500. Error Indexing failures.

Rationale

This happened several times in the past when damsmanager requested SOLR, which caused solr not being updated for the objects ingested or edited.

lsitu commented 6 years ago

@mcritchlow I've added PR https://github.com/ucsdlib/damsrepo/pull/64 above for it. Thanks.