Project

General

Profile

« Previous | Next » 

Revision 6636

Added stack trace debugging for CNodeService.isNodeAuthorized() for tracking down replication issues.

View differences:

src/edu/ucsb/nceas/metacat/dataone/CNodeService.java
829 829
      
830 830
      HazelcastService.getInstance().getSystemMetadataMap().unlock(pid);
831 831

  
832
	  } catch(Exception e) {
832
	  } catch(RuntimeException e) {
833 833
	      // Catch Hazelcast RuntimeExceptions
834 834
	      throw new ServiceFailure("4872", 
835
	          "Couldn't determine if node is allowed: " + e.getMessage());
835
	          "RuntimeException: Couldn't determine if node is allowed: " + 
836
	          e.getStackTrace().toString());
836 837
	    
838
    } catch(Exception e) {
839
        throw new ServiceFailure("4872", 
840
                "General Exception: Couldn't determine if node is allowed: " + 
841
                e.getStackTrace().toString());
842
        
837 843
	  } finally {
838 844
	    // always unlock the pid
839 845
      HazelcastService.getInstance().getSystemMetadataMap().unlock(pid);

Also available in: Unified diff