Skip to content

HBASE-29871 During WAL write times out add DataNode address in. the exception message#7719

Open
srinireddy2020 wants to merge 3 commits intoapache:masterfrom
srinireddy2020:HBASE-29871
Open

HBASE-29871 During WAL write times out add DataNode address in. the exception message#7719
srinireddy2020 wants to merge 3 commits intoapache:masterfrom
srinireddy2020:HBASE-29871

Conversation

@srinireddy2020
Copy link
Contributor

For better debug, add datanode address to the exception message during WAL write times out

if (evt instanceof IdleStateEvent && ((IdleStateEvent) evt).state() == READER_IDLE) {
promise
.tryFailure(new IOException("Timeout(" + timeoutMs + "ms) waiting for response"));
promise.tryFailure(new IOException(
Copy link
Contributor

Choose a reason for hiding this comment

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

@srinireddy2020
In other two places we are logging "channel.remoteAddress" in message and here dnInfo.toString.

Can't we keep it consistent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the method parameter already having the DN details so no need to call channel.remoteAddress.

Copy link
Contributor

@pankaj72981 pankaj72981 left a comment

Choose a reason for hiding this comment

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

LGTM +1

@Apache9
Copy link
Contributor

Apache9 commented Feb 10, 2026

Please fix the spotless issue?

@srinireddy2020
Copy link
Contributor Author

Please fix the spotless issue?

Spot less fixed. please check

}
String logInfo = "ack with firstBadLink as " + resp.getFirstBadLink();
String logInfo =
"ack with firstBadLink as " + resp.getFirstBadLink() + " from datanode " + dnInfo;
Copy link
Member

Choose a reason for hiding this comment

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

Overall looks good. Just some minor nits.
In a previous change, we print both the hostname and IP when printing datanode info, details see: #6148
It might be better to follow that same pattern here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment addressed, please check.

@Apache9
Copy link
Contributor

Apache9 commented Feb 20, 2026

@srinireddy2020 Please do a rebase as our github actions so we can finish the checks? Sorry we have changed the actions a bit so the scripts are broken...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments