java.io.IOException: Broken pipe???

140 views
Skip to first unread message

free free

unread,
May 19, 2021, 1:25:45 AM5/19/21
to Repo and Gerrit Discussion
Hello, My hook plug-in requested Gerrit through the API, but it timed out, so I closed the request, but an error occurred.
error message: java.io.IOException: Broken pipe

Björn Pedersen

unread,
May 19, 2021, 3:15:13 AM5/19/21
to Repo and Gerrit Discussion
Hi,

it's really hard to guess what you are doing without some more context ( code...) . The broken pipe is typical if some connection is forcefully terminated from one end, so not too surprising  your case. 

One hint: the gerrit server-side hooks should be fast, if you want to to long-running things (like running a test suite) then you should reconsider your general 
approach to let  the hook just send a  trigger to some external job that  then sets the appropriate labels.

Björn

free free

unread,
May 19, 2021, 5:09:47 AM5/19/21
to Repo and Gerrit Discussion
Hello, I git review a commit has more than 3000 files. When I make all HTTP requests to get diff in hooks, there will be a timeout, but when I filter out 2000 files, there will be broken pipe
Reply all
Reply to author
Forward
0 new messages