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

Conversation

mdumandag
Copy link
Contributor

Clean backport of #18642

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, ...

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 mdumandag added Type: Enhancement Backport Source: Internal PR or issue was opened by an employee labels May 6, 2021
@mdumandag mdumandag added this to the 4.2.1 milestone May 6, 2021
@mdumandag mdumandag self-assigned this May 6, 2021
@mdumandag mdumandag requested a review from a team as a code owner May 6, 2021 10:19
Copy link
Member

@srknzl srknzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mdumandag
Copy link
Contributor Author

Merging this with one approval since this is a clean backport of a PR that has 3 approvals

@mdumandag mdumandag merged commit bb4a38f into hazelcast:4.2.z May 6, 2021
@mdumandag mdumandag deleted the timeout-logging-4.2.z branch May 6, 2021 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants