You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by "dh-cloud (via GitHub)" <gi...@apache.org> on 2024/10/28 12:30:40 UTC
[PR] The log printing here is necessary because when an exception thrown b… [tinkerpop]
dh-cloud opened a new pull request, #2855:
URL: https://github.com/apache/tinkerpop/pull/2855
…y Netty reaches this method, if the error is not printed, the server side will not be able to perceive 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.
<!--
Thanks for contributing! Reminders:
+ TARGET the earliest branch where you want the change
3.6-dev -> 3.6.8 (bugs only)
3.7-dev -> 3.7.3 (non-breaking)
master -> 4.0.0
+ Committers will MERGE the PR forward to newer versions
+ ADD entry to the CHANGELOG.asciidoc for the targeted version
Do not reference a JIRA number there
+ ADD JIRA number to title and link in description
+ PRs requires 3 +1s from committers OR
1 +1 and 7 day wait to merge.
+ MORE details: https://s.apache.org/rtnal
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add log entry in WsAndHttpChannelizerHandler [tinkerpop]
Posted by "Cole-Greer (via GitHub)" <gi...@apache.org>.
Cole-Greer commented on PR #2855:
URL: https://github.com/apache/tinkerpop/pull/2855#issuecomment-2452441547
VOTE +1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] The log printing here is necessary because when an exception thrown b… [tinkerpop]
Posted by "kenhuuu (via GitHub)" <gi...@apache.org>.
kenhuuu commented on PR #2855:
URL: https://github.com/apache/tinkerpop/pull/2855#issuecomment-2442701406
Hi and thanks for contributing.
You are currently targeting this PR to `master` but it should most likely be targeting `3.7-dev`. That's because WebSockets won't be supported in the next major version so the file you are changing won't exist soon in `master`.
Also, do you mind putting a small entry into the [CHANGELOG](https://github.com/apache/tinkerpop/blob/3.7-dev/CHANGELOG.asciidoc).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add log entry in WsAndHttpChannelizerHandler [tinkerpop]
Posted by "xiazcy (via GitHub)" <gi...@apache.org>.
xiazcy commented on PR #2855:
URL: https://github.com/apache/tinkerpop/pull/2855#issuecomment-2447824348
VOTE +1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add log entry in WsAndHttpChannelizerHandler [tinkerpop]
Posted by "kenhuuu (via GitHub)" <gi...@apache.org>.
kenhuuu commented on code in PR #2855:
URL: https://github.com/apache/tinkerpop/pull/2855#discussion_r1821525600
##########
gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/handler/WsAndHttpChannelizerHandler.java:
##########
@@ -100,6 +105,12 @@ public void channelRead(final ChannelHandlerContext ctx, final Object obj) {
@Override
public void exceptionCaught(final ChannelHandlerContext ctx, final Throwable cause) {
+ // The log printing here is necessary because when an exception thrown by Netty reaches this method,
+ // if the error is not printed, the server side will not be able to perceive 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.
+ logger.error("Error processing request from netty", cause);
Review Comment:
```suggestion
logger.error("Could not process the request", cause);
```
Nit: the error should be slightly more generic to match what is done in `gremlin-driver`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add log entry in WsAndHttpChannelizerHandler [tinkerpop]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #2855:
URL: https://github.com/apache/tinkerpop/pull/2855#issuecomment-2447865051
## [Codecov](https://app.codecov.io/gh/apache/tinkerpop/pull/2855?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
Attention: Patch coverage is `50.00000%` with `1 line` in your changes missing coverage. Please review.
> Project coverage is 76.42%. Comparing base [(`9b46b67`)](https://app.codecov.io/gh/apache/tinkerpop/commit/9b46b6777d2fa250e41daacf2fa4554605aff53a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`f17d847`)](https://app.codecov.io/gh/apache/tinkerpop/commit/f17d84764520f4fd3e603ffcb967aaabea6e9d34?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
> Report is 266 commits behind head on 3.7-dev.
| [Files with missing lines](https://app.codecov.io/gh/apache/tinkerpop/pull/2855?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [...in/server/handler/WsAndHttpChannelizerHandler.java](https://app.codecov.io/gh/apache/tinkerpop/pull/2855?src=pr&el=tree&filepath=gremlin-server%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Ftinkerpop%2Fgremlin%2Fserver%2Fhandler%2FWsAndHttpChannelizerHandler.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Z3JlbWxpbi1zZXJ2ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3RpbmtlcnBvcC9ncmVtbGluL3NlcnZlci9oYW5kbGVyL1dzQW5kSHR0cENoYW5uZWxpemVySGFuZGxlci5qYXZh) | 50.00% | [1 Missing :warning: ](https://app.codecov.io/gh/apache/tinkerpop/pull/2855?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## 3.7-dev #2855 +/- ##
=============================================
+ Coverage 76.14% 76.42% +0.28%
- Complexity 13152 13224 +72
=============================================
Files 1084 1060 -24
Lines 65160 61489 -3671
Branches 7285 7334 +49
=============================================
- Hits 49616 46995 -2621
+ Misses 12839 11977 -862
+ Partials 2705 2517 -188
```
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/tinkerpop/pull/2855?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add log entry in WsAndHttpChannelizerHandler [tinkerpop]
Posted by "Cole-Greer (via GitHub)" <gi...@apache.org>.
Cole-Greer merged PR #2855:
URL: https://github.com/apache/tinkerpop/pull/2855
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add log entry in WsAndHttpChannelizerHandler [tinkerpop]
Posted by "kenhuuu (via GitHub)" <gi...@apache.org>.
kenhuuu commented on PR #2855:
URL: https://github.com/apache/tinkerpop/pull/2855#issuecomment-2445321627
Thanks, I just have one small nit regarding the logged message.
VOTE +1, pending change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org