fix file ClientAbortException

This commit is contained in:
ran.shang
2025-08-27 10:45:29 +08:00
parent 1b056e51d2
commit cb83b3a0ca

View File

@@ -70,7 +70,7 @@ public class AliFileStorage implements IFileStorage {
try { try {
IOUtils.copy(is, os); IOUtils.copy(is, os);
} catch (ClientAbortException e) { } catch (ClientAbortException e) {
throw new BusinessException("下载客户端异常:" + e.getMessage()); log.warn("客户端主动断开连接: {}", e.getMessage());
} }
} catch (IOException ie) { } catch (IOException ie) {
log.info("Caught an IOException", ie); log.info("Caught an IOException", ie);
@@ -115,7 +115,7 @@ public class AliFileStorage implements IFileStorage {
log.info("Caught an ClientException, which means the client encountered " log.info("Caught an ClientException, which means the client encountered "
+ "a serious internal problem while trying to communicate with OSS, " + "a serious internal problem while trying to communicate with OSS, "
+ "such as not being able to access the network."); + "such as not being able to access the network.");
log.info("Error Message:" + ce.getMessage()); log.info("Error Message:{}-{}", bucketName, ce.getMessage());
throw new DevopsException("oss客户端异常" + ce.getMessage()); throw new DevopsException("oss客户端异常" + ce.getMessage());
} }
} }