wcmc-its / ReCiter

ReCiter: an enterprise open source author disambiguation system for academic institutions
Apache License 2.0
46 stars 25 forks source link

Investigate 404 errors #511

Open paulalbert1 opened 1 year ago

paulalbert1 commented 1 year ago

The ReCiter Connect logs display the below errors. Why are we trying to run jobs for people when they don't exist?

2023-04-03 10:19:39.654  INFO 1 --- [           main] reciter.Application                      : InboundJaxrsResponse{context=ClientResponse{method=GET, uri=https://reciter.weill.cornell.edu/reciter/feature-generator/by/uid/?uid=jac9163&analysisRefreshFlag=true&retrievalRefreshFlag=ONLY_NEWLY_ADDED_PUBLICATIONS, status=200, reason=OK}}
2023-04-03 10:19:39.654  INFO 1 --- [           main] reciter.Application                      : InboundJaxrsResponse{context=ClientResponse{method=GET, uri=https://reciter.weill.cornell.edu/reciter/publication/manager/userfeedback/delete/?uid=jac9163, status=404, reason=Not Found}}
2023-04-03 10:19:39.654  INFO 1 --- [           main] reciter.Application                      : InboundJaxrsResponse{context=ClientResponse{method=GET, uri=https://reciter.weill.cornell.edu/reciter/feature-generator/by/uid/?uid=jub2029&analysisRefreshFlag=true&retrievalRefreshFlag=ONLY_NEWLY_ADDED_PUBLICATIONS, status=200, reason=OK}}
2023-04-03 10:19:39.654  INFO 1 --- [           main] reciter.Application                      : InboundJaxrsResponse{context=ClientResponse{method=GET, uri=https://reciter.weill.cornell.edu/reciter/publication/manager/userfeedback/delete/?uid=jub2029, status=404, reason=Not Found}}
2023-04-03 10:19:39.654  INFO 1 --- [           main] reciter.Application                      : InboundJaxrsResponse{context=ClientResponse{method=GET, uri=https://reciter.weill.cornell.edu/reciter/feature-generator/by/uid/?uid=elw9021&analysisRefreshFlag=true&retrievalRefreshFlag=ONLY_NEWLY_ADDED_PUBLICATIONS, status=200, reason=OK}}
2023-04-03 10:19:39.654  INFO 1 --- [           main] reciter.Application                      : InboundJaxrsResponse{context=ClientResponse{method=GET, uri=https://reciter.weill.cornell.edu/reciter/publication/manager/userfeedback/delete/?uid=elw9021, status=404, reason=Not Found}}
2023-04-03 10:19:39.654  INFO 1 --- [           main] reciter.Application                      : InboundJaxrsResponse{context=ClientResponse{method=GET, uri=https://reciter.weill.cornell.edu/reciter/feature-generator/by/uid/?uid=pag9051&analysisRefreshFlag=true&retrievalRefreshFlag=ONLY_NEWLY_ADDED_PUBLICATIONS, status=200, reason=OK}}
2023-04-03 10:19:39.654  INFO 1 --- [           main] reciter.Application                      : InboundJaxrsResponse{context=ClientResponse{method=GET, uri=https://reciter.weill.cornell.edu/reciter/publication/manager/userfeedback/delete/?uid=pag9051, status=404, reason=Not Found}}
2023-04-03 10:19:39.654  INFO 1 --- [           main] reciter.Application                      : InboundJaxrsResponse{context=ClientResponse{method=GET, uri=https://reciter.weill.cornell.edu/reciter/feature-generator/by/uid/?uid=jor2045&analysisRefreshFlag=true&retrievalRefreshFlag=ONLY_NEWLY_ADDED_PUBLICATIONS, status=200, reason=OK}}
2023-04-03 10:19:39.654  INFO 1 --- [           main] reciter.Application                      : InboundJaxrsResponse{context=ClientResponse{method=GET, uri=https://reciter.weill.cornell.edu/reciter/publication/manager/userfeedback/delete/?uid=jor2045, status=404, reason=Not Found}}
2023-04-03 10:19:39.654  INFO 1 --- [           main] reciter.Application                      : InboundJaxrsResponse{context=ClientResponse{method=GET, uri=https://reciter.weill.cornell.edu/reciter/feature-generator/by/uid/?uid=baj9019&analysisRefreshFlag=true&retrievalRefreshFlag=ONLY_NEWLY_ADDED_PUBLICATIONS, status=200, reason=OK}}
2023-04-03 10:19:39.654  INFO 1 --- [           main] reciter.Application                      : InboundJaxrsResponse{context=ClientResponse{method=GET, uri=https://reciter.weill.cornell.edu/reciter/publication/manager/userfeedback/delete/?uid=baj9019, status=404, reason=Not Found}}

Here's what I think is happening: the userFeedback table tracks feedback from users of Publication Manager that has not yet been added and looked up in the eSearchResults table. When we run Feature Generator, the userFeedback record gets cleared out in all cases.

Ideally, we would only do this when there are records in that table. Is there a way we can avoid this error? Do we have to delete it every time? It seems like a waste of resources. But maybe we do need to do this.