-
Notifications
You must be signed in to change notification settings - Fork 806
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
Add log entry in WsAndHttpChannelizerHandler #2855
Conversation
f05644b
to
da03daa
Compare
Hi and thanks for contributing. You are currently targeting this PR to Also, do you mind putting a small entry into the CHANGELOG. |
da03daa
to
a3980c8
Compare
// For example, if the maxContentLength in JanusGraph's Gremlin-Server configuration is set to 65536, | ||
// and the client sends data over this size via WebSocket, the JanusGraph server logs will appear normal, | ||
// but the client will experience a disconnection, making it difficult to immediately identify the cause of the issue. | ||
logger.error("Error processing request from netty", cause); |
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.
logger.error("Error processing request from netty", cause); | |
logger.error("Could not process the request", cause); |
Nit: the error should be slightly more generic to match what is done in gremlin-driver
Thanks, I just have one small nit regarding the logged message. VOTE +1, pending change. |
a3980c8
to
f17d847
Compare
VOTE +1 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 3.7-dev #2855 +/- ##
=============================================
+ Coverage 76.14% 76.43% +0.28%
- Complexity 13152 13226 +74
=============================================
Files 1084 1060 -24
Lines 65160 61489 -3671
Branches 7285 7334 +49
=============================================
- Hits 49616 46999 -2617
+ Misses 12839 11975 -864
+ Partials 2705 2515 -190 ☔ View full report in Codecov by Sentry. |
The log entry here is necessary because when an exception thrown by Netty reaches exceptionCaught(), if the error is not printed, the server side will not be able to know what has happened. For example, if the maxContentLength in JanusGraph's Gremlin-Server configuration is set to 65536, and the client sends data over this size via WebSocket, the JanusGraph server logs will appear normal, but the client will experience a disconnection, making it difficult to immediately identify the cause of the issue.
f17d847
to
8747760
Compare
VOTE +1 |
The log entry here is necessary because when an exception thrown by
Netty reaches exceptionCaught(), if the error is not printed, the
server side will not be able to know what has happened.
For example, if the maxContentLength in JanusGraph's Gremlin-Server
configuration is set to 65536, and the client sends data over this
size via WebSocket, the JanusGraph server logs will appear normal,
but the client will experience a disconnection, making it difficult
to immediately identify the cause of the issue.