sijie commented on a change in pull request #641: Issue-596 Issue-583: Auto 
replication should honor ensemble placement policy
URL: https://github.com/apache/bookkeeper/pull/641#discussion_r146714688
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/BookKeeperAdmin.java
 ##########
 @@ -797,6 +763,10 @@ public void openComplete(int newrc, final LedgerHandle 
newlh, Object newctx) {
                     return;
                 }
 
+                if (dryrun) {
+                    System.out.println("Recovered ledger " + lId + " : " + 
(fenceRequired ? "[fence required]" : ""));
 
 Review comment:
   in my opinion, the output of a command line is totally different from the 
logging information. they are served for different purpose. typically when 
users type a command with `dryrun` in bk shell, they would expect something are 
printed in the console to tell the result of `dryrun`.  that means in the code 
we anyway need to distinguish output of a command and the logging information. 
using a different logger object doesn't help here, because that means people 
need to be aware of the implementation and customize their log4j properties in 
order to get the right result of `dryrun` when using bk shell, that is going to 
be a pain point for users.
   
   If you feel strong about `System.out`, I can wrapp this into a method call 
`verbose(...)`. does that work for you? 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to