atomix / atomix

A Kubernetes toolkit for building distributed applications using cloud native principles

Home Page:https://atomix.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error is not getting printed when an Channel could not connect to an address

ashishmittal19 opened this issue · comments

Expected behavior

In ChannelPool.Java class in getChannel() method if a channel's future returns error that error is not getting printed in log.

Line 134: LOGGER.debug("Failed to connect to {}", channel.remoteAddress(), e);
and
Line 104:LOGGER.debug("Failed to connect to {}", address, error);

Actual behavior
These lines should have additional {} to print error.
Line 134: LOGGER.debug("Failed to connect to {} due to error {}", channel.remoteAddress(), e);
and
Line 104:LOGGER.debug("Failed to connect to {} due to error {}", address, error);

Steps to reproduce

Steps to reproduce the behavior.

Minimal yet complete reproducer code (or URL to code)

Environment

  • Atomix: [e.g. 3.0.0]
  • OS: [e.g. uname -a]
  • JVM [e.g. java -version]

⚠️️ Please verify that your issue still occurs on the latest version of Atomix before reporting.
The documentation is currently work-in-progress and is not yet complete.


Have you searched the CLOSED issues already? How about checking in with the Atomix Google Group?