Repository navigation
Description
Summary
LOAD DATA from S3/COS intermittently fails with ERROR 20101: internal error: http: server closed idle connection when loading large tables. The root cause is MO fileservice forcibly closing idle HTTP connections at fixed intervals instead of relying on http.Transport built-in idle management.
This is a recurrence pattern affecting multiple nightly CI jobs, particularly on the bmsql_stock table (TPCC 1000 warehouses, ~1 billion rows) due to its long upload duration.
Related
- [Subtask]: Do not manual cleanup idle connections #23225 (Open) — Do not manual cleanup idle connections (root cause subtask)
- [Bug]: COS fileservice PUT
connection resetduring Load #24916 (Closed) — COS fileservice PUTconnection resetduring Load (same pattern, different error)
Recent Occurrences
| Run | Date | Failed Table | Error |
|---|---|---|---|
| 28528757100 | 2026-07-01 | tpcc_1000.bmsql_stock | server closed idle connection |
| 28319741563 | 2026-06-29 | tpcc_1000.bmsql_stock | server closed idle connection |
Error
ERROR 20101 (HY000) at line 1: internal error: convert go error to mo error
Post "https://mo-nightly-gz-1308875761.cos.ap-guangzhou.myqcloud.com/mo-benchmark-.../data/...?uploadId=...":
http: server closed idle connection
Root Cause
MO fileservice calls CloseIdleConnections on the HTTP transport at fixed intervals. When a COS multipart upload is in progress and the connection is momentarily idle between chunks, the forced cleanup closes it mid-upload. Go wraps this as http: server closed idle connection.
The PutIdleConn: CloseIdleConnections was called log lines observed in other failures (e.g., hive partition dispatch timeout) confirm this pattern across multiple code paths.
Impact
- TPCC 1000W load:
bmsql_stockfails → all NEW_ORDER transactions fail withStock not found→ tpmC drops to ~1.59 (normal ~10881) - NONSYS RESTORE:
file_workingload fails → PITR restore cascade failure - Hive partition: CN-to-CN dispatch timeout correlated with
PutIdleConnerrors
Expected Behavior
Fileservice should rely on http.Transport built-in idle connection management (IdleConnTimeout, MaxIdleConns, MaxIdleConnsPerHost) rather than forcibly closing all idle connections. Active uploads should not be interrupted.
Environment
- Cluster: TKE Guangzhou nightly, 3 CNs + 1 DN
- COS:
mo-nightly-gz-1308875761.cos.ap-guangzhou.myqcloud.com - Branch: main
Activity
Ariznawlll commentedon Jul 6, 2026
需要往4.1-dev也提一个,会影响回归测试 @LeftHandCold
Ariznawlll commentedon Jul 7, 2026
4.1-dev没有这个问题了