zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iv...@apache.org
Subject svn commit: r1515773 - in /zookeeper/bookkeeper/branches/branch-4.2: CHANGES.txt bookkeeper-server/src/main/java/org/apache/bookkeeper/replication/ReplicationWorker.java
Date Tue, 20 Aug 2013 11:02:43 GMT
Author: ivank
Date: Tue Aug 20 11:02:43 2013
New Revision: 1515773

URL: http://svn.apache.org/r1515773
Log:
BOOKKEEPER-624: Reduce logs generated by ReplicationWorker (vinay via ivank)

Modified:
    zookeeper/bookkeeper/branches/branch-4.2/CHANGES.txt
    zookeeper/bookkeeper/branches/branch-4.2/bookkeeper-server/src/main/java/org/apache/bookkeeper/replication/ReplicationWorker.java

Modified: zookeeper/bookkeeper/branches/branch-4.2/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/bookkeeper/branches/branch-4.2/CHANGES.txt?rev=1515773&r1=1515772&r2=1515773&view=diff
==============================================================================
--- zookeeper/bookkeeper/branches/branch-4.2/CHANGES.txt (original)
+++ zookeeper/bookkeeper/branches/branch-4.2/CHANGES.txt Tue Aug 20 11:02:43 2013
@@ -60,6 +60,8 @@ Release 4.2.2 - Unreleased
 
         BOOKKEEPER-668: Race between PerChannelBookieClient#channelDisconnected() and disconnect()
calls can make clients hang while add/reading entries in case of multiple bookie failures
(sijie & ivank via ivank)
 
+        BOOKKEEPER-624: Reduce logs generated by ReplicationWorker (vinay via ivank)
+
       hedwig-server:
 
         BOOKKEEPER-579: TestSubAfterCloseSub was put in a wrong package (sijie via ivank)

Modified: zookeeper/bookkeeper/branches/branch-4.2/bookkeeper-server/src/main/java/org/apache/bookkeeper/replication/ReplicationWorker.java
URL: http://svn.apache.org/viewvc/zookeeper/bookkeeper/branches/branch-4.2/bookkeeper-server/src/main/java/org/apache/bookkeeper/replication/ReplicationWorker.java?rev=1515773&r1=1515772&r2=1515773&view=diff
==============================================================================
--- zookeeper/bookkeeper/branches/branch-4.2/bookkeeper-server/src/main/java/org/apache/bookkeeper/replication/ReplicationWorker.java
(original)
+++ zookeeper/bookkeeper/branches/branch-4.2/bookkeeper-server/src/main/java/org/apache/bookkeeper/replication/ReplicationWorker.java
Tue Aug 20 11:02:43 2013
@@ -138,8 +138,7 @@ public class ReplicationWorker implement
             UnavailableException {
         long ledgerIdToReplicate = underreplicationManager
                 .getLedgerToRereplicate();
-        LOG.info("Going to replicate the fragments of the ledger: "
-                + ledgerIdToReplicate);
+        LOG.debug("Going to replicate the fragments of the ledger: {}", ledgerIdToReplicate);
         LedgerHandle lh;
         try {
             lh = admin.openLedgerNoRecovery(ledgerIdToReplicate);
@@ -169,8 +168,7 @@ public class ReplicationWorker implement
             return;
         }
         Set<LedgerFragment> fragments = getUnderreplicatedFragments(lh);
-        LOG.info("Founds fragments " + fragments
-                + " for replication from ledger: " + ledgerIdToReplicate);
+        LOG.debug("Founds fragments {} for replication from ledger: {}", fragments, ledgerIdToReplicate);
 
         boolean foundOpenFragments = false;
         for (LedgerFragment ledgerFragment : fragments) {
@@ -179,9 +177,8 @@ public class ReplicationWorker implement
                 continue;
             } else if (isTargetBookieExistsInFragmentEnsemble(lh,
                     ledgerFragment)) {
-                LOG.info("Target Bookie[" + targetBookie
-                        + "] found in the fragment ensemble:"
-                        + ledgerFragment.getEnsemble());
+                LOG.debug("Target Bookie[{}] found in the fragment ensemble: {}", targetBookie,
+                        ledgerFragment.getEnsemble());
                 continue;
             }
             try {



Mime
View raw message