You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2024/03/04 14:29:00 UTC
[jira] [Commented] (HBASE-28417) TestBlockingIPC.testBadPreambleHeader sometimes fails with broken pipe instead of bad auth
[ https://issues.apache.org/jira/browse/HBASE-28417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17823211#comment-17823211 ]
Duo Zhang commented on HBASE-28417:
-----------------------------------
OK, I think the problem is in SimpleRpcServer.
In the test, we will close the connection after writing the bad auth response out.
But the problem for SimpleRpcServer is that, the write to socket is in a background Responder thread, so it is possible that before we actually write the response out, we have already closed the connection,which will lead to a broken pipe instead of bad auth.
Since this is not a critical problem, I tend to add some retries in the test code to make it more stable.
> TestBlockingIPC.testBadPreambleHeader sometimes fails with broken pipe instead of bad auth
> ------------------------------------------------------------------------------------------
>
> Key: HBASE-28417
> URL: https://issues.apache.org/jira/browse/HBASE-28417
> Project: HBase
> Issue Type: Bug
> Components: IPC/RPC, test
> Reporter: Duo Zhang
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)