Uh oh!
There was an error while loading. Please reload this page.
HBASE-23333 Provide call context around timeouts and other failure scenarios - #872
Conversation
ndimiduk
commented
Nov 23, 2019
Initial commit simply include the output of |
Apache-HBase
commented
Nov 23, 2019
🎊 +1 overall
This message was automatically generated. |
bharathv
left a comment
There was a problem hiding this comment.
nice cleanup. Couple of optional nits.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| public String toString() { | ||
| return "callId: " + this.id + " methodName: " + this.md.getName() + " param {" | ||
| + (this.param != null ? ProtobufUtil.getShortTextFormat(this.param) : "") + "}"; | ||
| return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) |
a56df5f to
c7953ddComparendimiduk
commented
Dec 4, 2019
I found more-or-less what I was looking for over on HBASE-22316. Somehow the piece of stack trace i found in my logs was omitted. Settling for this for now. |
Apache-HBase
commented
Dec 5, 2019
🎊 +1 overall
This message was automatically generated. |
Apache9
left a comment
There was a problem hiding this comment.
What is the new error message look like? Will it be too long as we log the whole call?
| assertTrue(Stream.of(elements) | ||
| .anyMatch(element -> element.toString().contains("--------Future.get--------"))); | ||
| } catch (Throwable t) { | ||
| throw new AssertionError("Caught unexpected Throwable", t); |
There was a problem hiding this comment.
This is to ensure that the test fails when the exception we expect isn't thrown. It would be simply fail() except that api doesn't let me retain the context provided by t.
ndimiduk
commented
Dec 5, 2019
Maybe this is too verbose? |
c7953dd to
44ef309Comparendimiduk
commented
Dec 6, 2019
Rebased onto master and reduced the verbosity to just call.id and call.methodName. It would be nice to selectively include parameters, such as all non-default values. Could update the log sites to log less when the redundant values are already in the params... What do you folks think? |
Apache-HBase
commented
Dec 6, 2019
🎊 +1 overall
This message was automatically generated. |
ndimiduk
commented
Dec 9, 2019
Still have objections @Apache9 ? |
bharathv
left a comment
There was a problem hiding this comment.
Patch seems fine to me, fwiw.
Uh oh!
There was an error while loading. Please reload this page.
44ef309 to
d2ffc92CompareApache-HBase
commented
Jan 3, 2020
🎊 +1 overall
This message was automatically generated. |
No description provided.