Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty print cluster connect timeout in logs #18648

Merged
merged 1 commit into from May 6, 2021

Commits on May 6, 2021

  1. Pretty print cluster connect timeout in logs

    The default value for the cluster connect timeout is infinite,
    so it is represented with `Long.MAX_VALUE`. When we try to log
    this as it is, we output something like below.
    
    ```
    ... cluster connect timeout: 9223372036854775807 ms, ...
    ```
    
    To make this more clear, we will replace this with the
    output below.
    
    ```
    ... cluster connect timeout: INFINITE, ...
    ```
    
    If the user has provided some other timeout value (such as 999 ms),
    the output will still be as it is now.
    
    ```
    ... cluster connect timeout: 999 ms, ...
    ```
    mdumandag committed May 6, 2021
    Configuration menu
    Copy the full SHA
    b907650 View commit details
    Browse the repository at this point in the history