Revision 7113
Added by ben leinfelder over 12 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
456 | 456 |
|
457 | 457 |
} catch (Exception e) { |
458 | 458 |
// let the CN know that the replication failed |
459 |
setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.FAILED, serviceFailure); |
|
459 |
setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.FAILED, serviceFailure); |
|
460 |
logMetacat.warn(msg); |
|
460 | 461 |
throw serviceFailure; |
461 | 462 |
|
462 | 463 |
} |
... | ... | |
504 | 505 |
} catch (Exception e) { |
505 | 506 |
String msg = "Error computing checksum on replica: " |
506 | 507 |
+ e.getMessage(); |
508 |
logMetacat.error(msg); |
|
507 | 509 |
ServiceFailure sf = new ServiceFailure("2151", msg); |
508 | 510 |
sf.initCause(e); |
509 | 511 |
throw sf; |
510 | 512 |
} |
511 | 513 |
if (!givenChecksum.getValue().equals(computedChecksum.getValue())) { |
512 |
logMetacat.debug("Given checksum for " + pid.getValue() +
|
|
514 |
logMetacat.error("Given checksum for " + pid.getValue() +
|
|
513 | 515 |
"is " + givenChecksum.getValue()); |
514 |
logMetacat.debug("Computed checksum for " + pid.getValue() +
|
|
516 |
logMetacat.error("Computed checksum for " + pid.getValue() +
|
|
515 | 517 |
"is " + computedChecksum.getValue()); |
516 | 518 |
throw new ServiceFailure("2151", |
517 | 519 |
"Computed checksum does not match declared checksum"); |
Also available in: Unified diff
additional logging in MN.replicate()