-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-3498. Shutdown datanode if address is already in use #7256
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 1 commit
7d3ccfe
c9e88a2
9fd9d99
20f4470
4d16aa7
71588eb
58741b5
6017207
29400e5
164f1c0
83fbbbe
4a46f4d
4b4a582
6253cb1
d9536ab
3bb033d
0ac758e
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 |
|---|---|---|
|
|
@@ -234,12 +234,14 @@ public void logIfNeeded(Exception ex) { | |
| } | ||
|
|
||
| if (missCounter == 0) { | ||
| LOG.warn( | ||
| "Unable to communicate to {} server at {} for past {} seconds.", | ||
| serverName, | ||
| getAddress().getHostString() + ":" + getAddress().getPort(), | ||
| TimeUnit.MILLISECONDS.toSeconds(this.getMissedCount() * | ||
| getScmHeartbeatInterval(this.conf)), ex); | ||
| LOG.error( | ||
| "Unable to communicate to {} server at {}:{} for past {} seconds.", | ||
| serverName, | ||
| address.getAddress(), | ||
| address.getPort(), | ||
| TimeUnit.MILLISECONDS.toSeconds(this.getMissedCount() * getScmHeartbeatInterval(this.conf)), | ||
|
||
| ex | ||
| ); | ||
| } | ||
|
|
||
| if (LOG.isTraceEnabled()) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -107,7 +107,8 @@ public EndpointStateMachine.EndPointStates call() throws Exception { | |
| } catch (DiskOutOfSpaceException ex) { | ||
| rpcEndPoint.setState(EndpointStateMachine.EndPointStates.SHUTDOWN); | ||
| } catch (IOException ex) { | ||
| rpcEndPoint.logIfNeeded(ex); | ||
| LOG.error(ex.getCause().getMessage(), ex); | ||
|
||
| rpcEndPoint.setState(EndpointStateMachine.EndPointStates.SHUTDOWN); | ||
| } finally { | ||
| rpcEndPoint.unlock(); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you changed it to error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the remark. I’ll change it back. I initially changed it at the beginning of working on the task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done