hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject svn commit: r1049280 - /hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
Date Tue, 14 Dec 2010 21:20:10 GMT
Author: jdcryans
Date: Tue Dec 14 21:20:10 2010
New Revision: 1049280

URL: http://svn.apache.org/viewvc?rev=1049280&view=rev
Log:
fixing a minor logging mixup

Modified:
    hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java

Modified: hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java?rev=1049280&r1=1049279&r2=1049280&view=diff
==============================================================================
--- hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
(original)
+++ hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
Tue Dec 14 21:20:10 2010
@@ -629,11 +629,12 @@ public class ReplicationSource extends T
 
   public void terminate(String reason, Exception cause) {
     if (cause == null) {
-      LOG.error("Closing source " + this.peerClusterZnode
-          + " because an error occurred: " + reason, cause);
-    } else {
       LOG.info("Closing source "
           + this.peerClusterZnode + " because: " + reason);
+
+    } else {
+      LOG.error("Closing source " + this.peerClusterZnode
+          + " because an error occurred: " + reason, cause);
     }
     this.running = false;
     Threads.shutdown(this, this.sleepForRetries);



Mime
View raw message