Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: 长时间运行后,file-worker下载第三方文件源文件失败 #1346

Closed
jsonwan opened this issue Sep 21, 2022 · 0 comments
Closed
Assignees
Labels
kind/bug 程序故障Bug,漏洞 stage/prod Production environment in tencent has been deploy stage/test Test environment in tencent has been deploy

Comments

@jsonwan
Copy link
Collaborator

jsonwan commented Sep 21, 2022

Version / Branch / tag
3.5.x

出了什么问题?(What Happened?)
长时间运行后,file-worker下载第三方文件源文件失败,后台日志报出以下异常:
com.tencent.bk.job.common.exception.InternalException: org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool
at com.tencent.bk.job.common.util.http.BaseHttpHelper.getRawResp(BaseHttpHelper.java:72)
at com.tencent.bk.job.common.util.http.WatchableHttpHelper.getRawResp(WatchableHttpHelper.java:53)
at com.tencent.bk.job.common.util.http.ExtHttpHelper.getRawResp(ExtHttpHelper.java:142)
at com.tencent.bk.job.common.artifactory.sdk.ArtifactoryClient.getFileInputStream(ArtifactoryClient.java:422)
at com.tencent.bk.job.common.artifactory.sdk.ArtifactoryClient.getFileInputStream(ArtifactoryClient.java:407)
at com.tencent.bk.job.file.worker.artifactory.service.ArtifactoryRemoteClient.getFileInputStream(ArtifactoryRemoteClient.java:53)
at com.tencent.bk.job.file.worker.cos.service.DownloadFileTask.downloadFileToLocal(DownloadFileTask.java:105)
at com.tencent.bk.job.file.worker.cos.service.DownloadFileTask.run(DownloadFileTask.java:162)
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)
Caused by: org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.leaseConnection(PoolingHttpClientConnectionManager.java:314)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager$1.get(PoolingHttpClientConnectionManager.java:280)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:190)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
at com.tencent.bk.job.common.util.http.BaseHttpHelper.getRawResp(BaseHttpHelper.java:69)
... 12 common frames omitted

如何复现?(How to reproduce?)
长时间运行后,分发第三方源文件

预期结果(What you expect?)
正常分发

@jsonwan jsonwan added the kind/bug 程序故障Bug,漏洞 label Sep 21, 2022
@jsonwan jsonwan assigned nekzhang and jsonwan and unassigned nekzhang Sep 21, 2022
@jsonwan jsonwan changed the title bugfix: bugfix: 长时间运行后,file-worker下载文件第三方文件源文件失败 Sep 21, 2022
@jsonwan jsonwan changed the title bugfix: 长时间运行后,file-worker下载文件第三方文件源文件失败 bugfix: 长时间运行后,file-worker下载第三方文件源文件失败 Sep 21, 2022
jsonwan added a commit to jsonwan/bk-job that referenced this issue Sep 21, 2022
jsonwan added a commit to jsonwan/bk-job that referenced this issue Sep 21, 2022
jsonwan added a commit to jsonwan/bk-job that referenced this issue Sep 21, 2022
jsonwan added a commit to jsonwan/bk-job that referenced this issue Sep 21, 2022
jsonwan added a commit to jsonwan/bk-job that referenced this issue Sep 22, 2022
jsonwan added a commit to jsonwan/bk-job that referenced this issue Sep 22, 2022
jsonwan added a commit to jsonwan/bk-job that referenced this issue Sep 22, 2022
wangyu096 added a commit that referenced this issue Sep 22, 2022
bugfix: 长时间运行后,file-worker下载第三方文件源文件失败 #1346
@bkjob-bot bkjob-bot added the stage/test Test environment in tencent has been deploy label Sep 22, 2022
jsonwan added a commit to jsonwan/bk-job that referenced this issue Sep 22, 2022
jsonwan added a commit that referenced this issue Sep 22, 2022
bugfix: 长时间运行后,file-worker下载第三方文件源文件失败 #1346
jsonwan added a commit to jsonwan/bk-job that referenced this issue Sep 23, 2022
jsonwan added a commit to jsonwan/bk-job that referenced this issue Sep 23, 2022
wangyu096 added a commit that referenced this issue Sep 23, 2022
bugfix: 长时间运行后,file-worker下载第三方文件源文件失败 #1346
jsonwan added a commit to jsonwan/bk-job that referenced this issue Sep 23, 2022
jsonwan added a commit that referenced this issue Sep 23, 2022
bugfix: 长时间运行后,file-worker下载第三方文件源文件失败 #1346
@bkjob-bot bkjob-bot added the stage/prod Production environment in tencent has been deploy label Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug 程序故障Bug,漏洞 stage/prod Production environment in tencent has been deploy stage/test Test environment in tencent has been deploy
Projects
None yet
Development

No branches or pull requests

3 participants