Project

General

Profile

« Previous | Next » 

Revision 6820

Set the replica status to failed (not invalidated) when we get exceptions trying to read the object bytes. Not much of a difference, but only the CN, in theory, is supposed to be able to set the invalidated status.

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
505 505
            try {
506 506
                object = MetacatHandler.read(localId);
507 507
            } catch (PropertyNotFoundException e) {
508
                setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.INVALIDATED, serviceFailure);  
508
                setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.FAILED, serviceFailure);  
509 509
                
510 510
            } catch (ParseLSIDException e) {
511
                setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.INVALIDATED, serviceFailure);  
511
                setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.FAILED, serviceFailure);  
512 512
                
513 513
            } catch (McdbException e) {
514
                setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.INVALIDATED, serviceFailure);  
514
                setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.FAILED, serviceFailure);  
515 515
                
516 516
            } catch (SQLException e) {
517
                setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.INVALIDATED, serviceFailure);  
517
                setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.FAILED, serviceFailure);  
518 518
                
519 519
            } catch (ClassNotFoundException e) {
520
                setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.INVALIDATED, serviceFailure);  
520
                setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.FAILED, serviceFailure);  
521 521
                
522 522
            } catch (IOException e) {
523
                setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.INVALIDATED, serviceFailure);  
523
                setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.FAILED, serviceFailure);  
524 524
               
525 525
            }
526 526

  

Also available in: Unified diff