[
https://issues.apache.org/jira/browse/HADOOP-19922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18144758#comment-18144758
]
ASF GitHub Bot commented on HADOOP-19922:
-----------------------------------------
slfan1989 commented on code in PR #8553:
URL: https://github.com/apache/hadoop/pull/8553#discussion_r4572743963
##########
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java:
##########
@@ -2524,6 +2525,10 @@ private void checkDataLength(int dataLength) throws
IOException {
maxDataLength + ". RPC came from " + getHostAddress();
LOG.warn(error);
throw new IOException(error);
+ } else if (warnDataLength > 0 && dataLength > warnDataLength) {
+ LOG.warn(
Review Comment:
Thanks for adding this warning.
I reproduced a case where the same RPC stays below the threshold with `auth`
but triggers a warning with `auth-int` and `auth-conf` because of SASL framing
overhead.
Could we check the decoded RPC length in the request path shared by both
modes and add a regression test with SASL wrapping enabled?
> Add configurable warn threshold for large IPC RPC request data length
> ---------------------------------------------------------------------
>
> Key: HADOOP-19922
> URL: https://issues.apache.org/jira/browse/HADOOP-19922
> Project: Hadoop Common
> Issue Type: Improvement
> Components: ipc
> Reporter: dzcxzl
> Priority: Minor
> Labels: pull-request-available
>
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]