-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add host address to BindTransportException message #51269
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
Changes from 2 commits
07a0b5b
52705b5
57fe019
c01ad2b
4405e4e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -174,7 +174,10 @@ private TransportAddress bindAddress(final InetAddress hostAddress) { | |
| return true; | ||
| }); | ||
| if (!success) { | ||
| throw new BindHttpException("Failed to bind to [" + port.getPortRangeString() + "]", lastException.get()); | ||
| throw new BindHttpException( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is failing forbidden APIs checks, see the logs:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @original-brownbear, thanks for reviewing this. I ran the tests but forgot to run the check task. Will fix this ASAP.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mariaral FYI, you can just run these simple static code checks via: no need to run a full
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @original-brownbear for the tip. I didn't know of the precommit task. I'm thinking of extending What do you think?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I only count two spots where we print the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I pushed a new commit. Please take a look. |
||
| "Failed to bind to " + NetworkAddress.format(hostAddress, port), | ||
| lastException.get() | ||
| ); | ||
| } | ||
|
|
||
| if (logger.isDebugEnabled()) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.