From 2937fb7cfb78315ea5bbda485e1f1a37a1190d11 Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Sat, 4 Jul 2026 03:18:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(tenant-service):=20=E7=A7=81=E6=9C=89?= =?UTF-8?q?=E9=83=A8=E7=BD=B2"=E4=B8=80=E9=94=AE=E6=9B=B4=E6=96=B0"?= =?UTF-8?q?=E5=9B=A0=E5=BC=82=E6=AD=A5=E8=AF=B7=E6=B1=82=E8=B6=85=E6=97=B6?= =?UTF-8?q?=E5=8D=8A=E9=80=94=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 一键更新/重置接口用 StreamingResponseBody 长连接执行 docker pull + 重建容器, docker pull 大镜像耗时经常超过 Tomcat 默认 30s 异步超时,导致处理线程被 InterruptedException 中断,更新流程半途而废(例如 pull tenant-web 卡住后 整个流程直接失败退出)。禁用该接口所在服务的异步请求超时。 Co-Authored-By: Claude Sonnet 5 --- tenant-service/src/main/resources/application.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tenant-service/src/main/resources/application.yml b/tenant-service/src/main/resources/application.yml index 7913095..1c7a673 100644 --- a/tenant-service/src/main/resources/application.yml +++ b/tenant-service/src/main/resources/application.yml @@ -4,6 +4,12 @@ server: spring: application: name: tenant-service + mvc: + async: + # 一键更新/重置接口用 StreamingResponseBody 长连接跑 docker pull + 重建容器, + # 单个大镜像拉取常常超过 Tomcat 默认 30s 异步超时,导致 Process.waitFor() + # 被 InterruptedException 中断、更新流程半途失败。这里禁用超时(-1)。 + request-timeout: -1 datasource: url: jdbc:mysql://39.107.53.187:3306/xuqm_tenant?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true username: xuqm