Issue 11091

registry-sync: Metadata update should better log info on resources what resources fail to be updated

11091
Reporter: kbraak
Assignee: fmendez
Type: Improvement
Summary: registry-sync: Metadata update should better log info on resources what resources fail to be updated
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2012-05-14 17:15:24.772
Updated: 2013-12-16 17:51:01.739
Resolved: 2012-05-29 16:31:20.98
TimeEstimate: 0
TimeSpent: 3600
        
Description: An update was performed on the following technical installation: http://staging.gbif.org:8080/registry-ws/technical_installation/502dbaf0-990a-11e1-aa26-344ee9a6839c

I believe all endpoints were successfully updated except http://seitikka.fmnh.helsinki.fi:8080/ipt/tapir/14/ (this endpoint really doesn't belong here, but that is a separate issue: http://dev.gbif.org/issues/browse/REG-199)

This is confirmed in the standard.out:

16:56:47.665 o.g.registry.sync.util.RequestUtils Http connection error
org.apache.http.conn.HttpHostConnectException: Connection to http://seitikka.fmnh.helsinki.fi:8080 refused

But the HIT's console log reads:

Dataset null synchronized, status: ERROR, statusCode: null, message: null

This needs to be more descriptive info, including the resource uuid (in this case I believe is: 83D36270-E4AC-11DE-AD5C-E0DDF866799D)]]>
    


Author: fmendez@gbif.org
Comment: Logging fixed, when a HTTP request failed, the content of response object were not being populated with the existing dataset object.
Created: 2012-05-21 11:00:35.093
Updated: 2012-05-21 11:00:35.093


Author: kbraak@gbif.org
Created: 2012-05-25 15:23:07.537
Updated: 2012-05-25 15:23:07.537
        
Message now reads:

Dataset e87a6cc0-5138-11df-8002-b8a03c50a862 synchronized, status: ERROR, statusCode: null, message: Object could not be interpreted, parser returned null

Try to think from the perspective of the HIT operator, and they type of information they would need to relay back to the dataset owner. If I click on the endpoint URL, I see it is a resource not found error... something like this would be more helpful to the operator. 
    


Author: fmendez@gbif.org
Comment: Exception/StackTrace used to describe the error
Created: 2012-05-29 16:31:21.016
Updated: 2012-05-29 16:31:21.016