You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dolphinscheduler.apache.org by Lidong Dai <li...@apache.org> on 2022/01/05 14:59:16 UTC
Re: 1.3.x HTTP Task response timeout cannot be configured
hi,
2.0.x has supported to set the timeout param for the http task type.
Best Regards
---------------
Apache DolphinScheduler PMC Chair
LidongDai
lidongdai@apache.org
Linkedin: https://www.linkedin.com/in/dailidong
Twitter: @WorkflowEasy <https://twitter.com/WorkflowEasy>
---------------
On Mon, Dec 27, 2021 at 3:43 PM Zed <yu...@163.com> wrote:
> 取消订阅
>
> > 在 2021年12月25日,下午1:37,仙剑……情动人间 <15...@qq.com.INVALID> 写道:
> >
> > Dear All,
> >
> > The version of the Dolphinscheduler we are using is 1.3.6。
> > The following error was encountered while using the HTTP task node:
> >
> >
> > connection failed:java.net.SocketTimeoutException: Read timed out
> > java.net.SocketTimeoutException: Read timed out
> > at java.net.SocketInputStream.socketRead0(Native Method)
> > at
> java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
> > at java.net.SocketInputStream.read(SocketInputStream.java:171)
> > at java.net.SocketInputStream.read(SocketInputStream.java:141)
> > at org.apache.http.impl.io
> .SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:139)
> > at org.apache.http.impl.io
> .SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:155)
> > at org.apache.http.impl.io
> .SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:284)
> > at
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:140)
> > at
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
> > at org.apache.http.impl.io
> .AbstractMessageParser.parse(AbstractMessageParser.java:261)
> > at
> org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:165)
> > at
> org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:167)
> > at
> org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:272)
> > at
> org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:124)
> > at
> org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:271)
> > at
> org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
> > at
> org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
> > at
> org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
> > at
> org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
> > at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
> > at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
> > at
> org.apache.dolphinscheduler.server.worker.task.http.HttpTask.sendRequest(HttpTask.java:165)
> > at
> org.apache.dolphinscheduler.server.worker.task.http.HttpTask.handle(HttpTask.java:122)
> > at
> org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:133)
> > at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> > at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> > at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> > at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> > at java.lang.Thread.run(Thread.java:748)
> >
> > The reason for the error is that the response time of the task
> request exceeds the default timeout of HTTP task node。
> >
> > Reading the source code of HTTP task node, I did find the part of
> setting the timeout, but I don't know whether the timeout can be specified
> through configuration。
> >
> >
> >
> >
> >
> >
> > Best regards,
> >
> > Luke Yan
> >
>
>