You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by eo...@apache.org on 2021/01/15 09:59:58 UTC

[bookkeeper] branch branch-4.12 updated: Issue 2531 - Fix noisy stacktrace at boot (#2532)

This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch branch-4.12
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/branch-4.12 by this push:
     new ea89c45  Issue 2531 - Fix noisy stacktrace at boot (#2532)
ea89c45 is described below

commit ea89c45f08eb9bd1289a72c91b93560743a1d91d
Author: Diana Clementi <di...@gmail.com>
AuthorDate: Wed Jan 13 23:48:47 2021 +0100

    Issue 2531 - Fix noisy stacktrace at boot (#2532)
    
    ### Motivation
    The exception is managed with a fallback, printing the stacktrace would be misleading
    
    ### Changes
    - Changed log level from info to debug for the log line
    - Removed the exception from the log line
    
    Master Issue: #2531
---
 .../java/org/apache/bookkeeper/client/DefaultBookieAddressResolver.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/DefaultBookieAddressResolver.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/DefaultBookieAddressResolver.java
index 3a7636f..d11eaa9 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/DefaultBookieAddressResolver.java
+++ b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/DefaultBookieAddressResolver.java
@@ -56,7 +56,7 @@ public class DefaultBookieAddressResolver implements BookieAddressResolver {
             return res;
         } catch (BKException.BKBookieHandleNotAvailableException ex) {
             if (BookieSocketAddress.isDummyBookieIdForHostname(bookieId)) {
-                log.info("Resolving dummy bookie Id {} using legacy bookie resolver", bookieId, ex);
+                log.debug("Resolving dummy bookie Id {} using legacy bookie resolver", bookieId);
                 return BookieSocketAddress.resolveDummyBookieId(bookieId);
             }
             log.info("Cannot resolve {}, bookie is unknown", bookieId, ex);