Skip to content

LOAD DATA fails with COS server closed idle connection due to fileservice forcibly closing idle connections #25350

Closed

Description

@Ariznawlll

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

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_stock fails → all NEW_ORDER transactions fail with Stock not found → tpmC drops to ~1.59 (normal ~10881)
  • NONSYS RESTORE: file_working load fails → PITR restore cascade failure
  • Hive partition: CN-to-CN dispatch timeout correlated with PutIdleConn errors

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

  1. added
    kind/bug
    severity/s0
    on Jul 2, 2026
  2. added theissue type on Jul 2, 2026
  3. added this to the MO-202607 milestone on Jul 2, 2026
  4. added
    ai-easy
    on Jul 4, 2026
  5. Ariznawlll commented on Jul 6, 2026

    @Ariznawlll
    CollaboratorAuthor

    需要往4.1-dev也提一个,会影响回归测试 @LeftHandCold

  6. Ariznawlll commented on Jul 7, 2026

    @Ariznawlll
    CollaboratorAuthor

    4.1-dev没有这个问题了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ai-easykind/bugseverity/s0

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions