Skip to content

Inter-node i/o timeout in ReadFileStreamHandler during storage REST API call #51

Closed

Description

@kh0mka

Hello, Vonng. I'm not claiming this is a problem or a bug, but I suspect that updating my environment to a specific Docker image led to timeout errors between nodes. I hadn't encountered such issues before the update. The errors started appearing after upgrading the cluster from pgsty/minio:RELEASE.2026-04-17T00-00-00Z to pgsty/minio:RELEASE.2026-06-18T00-00-00Z.

Could you please check if any issues occurred between these versions, and how critical is this? I've checked the disks, CPU, network, and network bandwidth. No issues were detected, and the volumes and load didn't increase, but the errors still appeared after the update. Check if everything is ok on the update side?

Type of Errors:

API: SYSTEM.storage
Time: 12:29:36 UTC 08/03/2026
DeploymentID: 67b4921f-5bfb-4163-b7d5-32a7e1bfa2d8
Error: write tcp 10.93.3.81:9000->10.93.3.83:41352: i/o timeout (*net.OpError)
       4: internal/logger/logger.go:271:logger.LogIf()
       3: cmd/logging.go:160:cmd.storageLogIf()
       2: cmd/storage-rest-server.go:628:cmd.(*storageRESTServer).ReadFileStreamHandler()
       1: net/http/server.go:2286:http.HandlerFunc.ServeHTTP()

Moreover, errors can occur from node 1 (10.93.3.81) to node 3 (10.93.3.83), or from node 2 to node 4. There's no pattern here. During this time, no network, bandwidth, disk, or DNS server outages were detected.

Error Frequency (last 6 hours)

Node Errors
node-11 (10.93.3.81) 152
node-12 (10.93.3.82) 72
node-13 (10.93.3.83) 72
node-14 (10.93.3.84) 0

The errors are intermittent and unevenly distributed: there can be zero errors for a couple of hours, then 1–2 sporadic ones, or sudden bursts like the current spike on node-11. No correlation with specific operations or time of day has been observed.

My Environment

  • Version Used:
minio version RELEASE.2026-06-18T00-00-00Z (commit-id=3e61b1d3a55c67340214ed6dc4612a7e2abc877d)
Runtime: go1.26.4 linux/amd64
License: GNU AGPLv3 - https://www.gnu.org/licenses/agpl-3.0.html
Copyright: 2015-2026 MinIO, Inc.
  • Server setup and configuration:
●  ***-11-***:9000
   Uptime:2 weeks
   Version: 2026-06-18T00:00:00Z
   Network: 4/4 OK
   Drives: 4/4 OK
   Pool: 1

●  ***-12-***:9000
   Uptime:2 weeks
   Version: 2026-06-18T00:00:00Z
   Network: 4/4 OK
   Drives: 4/4 OK
   Pool: 1

●  ***-13-***:9000
   Uptime:2 weeks
   Version: 2026-06-18T00:00:00Z
   Network: 4/4 OK
   Drives: 4/4 OK
   Pool: 1

●  ***-14-***:9000
   Uptime:2 weeks
   Version: 2026-06-18T00:00:00Z
   Network: 4/4 OK
   Drives: 4/4 OK
   Pool: 1

┌──────┬────────────────────────┬─────────────────────┬──────────────┐
│ Pool │ Drives Usage           │ Erasure stripe size │ Erasure sets │
│ 1st  │ 63.6% (total: 1.8 TiB) │ 16                  │ 1            │
└──────┴────────────────────────┴─────────────────────┴──────────────┘

1.0 TiB Used, 40 Buckets, 1,093,240 Objects, 2,915 Versions, 77 Delete Markers
16 drives online, 0 drives offline, EC:4

command: >
      server
      --address ":9000"
      --console-address ":9001"
      http://***-1{1...4}.***/data{1...4}
  • Operating System and version (uname -a):
Linux ************ 6.12.95+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.95-1 (2026-07-04) x86_64 GNU/Linux

Activity

  1. added this to Siloand Siloon Aug 4, 2026
  2. Vonng commented on Aug 4, 2026

    @Vonng
    Member

    Thanks for the detailed report — the tables and the per-node breakdown made this much easier to chase.

    What I can rule out

    ReadFileStreamHandler is byte-identical between the two releases you compared. There are only five commits between RELEASE.2026-04-17T00-00-00Z and RELEASE.2026-06-18T00-00-00Z, and the only one touching cmd/storage-rest-server.go is the CVE-2026-42600 fix, which removes the ReadMultiple endpoint. That endpoint had no caller anywhere in the tree, so removing it shifted no traffic onto ReadFileStream. Nothing in the fork sets or changes deadlines on this path either — the timeout machinery is all inherited upstream and untouched by both releases.

    One thing did change, and it is worth checking on your side: the log line moved from storage-rest-server.go:629 to :628, because the CVE fix removed an import above it. If any of your alerting, dedup, or log-grep keys on file:line, it would have silently stopped matching at the old position and started matching at a new one — which can look exactly like "these errors started after the upgrade."

    What the error actually means

    10.93.3.81:9000 is the listener and 10.93.3.83:41352 is an ephemeral port, so node-83 is the storage-REST client here. Node-81 is streaming a shard to node-83, and node-83 stopped draining that socket for 30 seconds.

    This is specifically not a peer that hung up — a reset or EOF is classified as a disconnected client and suppressed. The suppression check passes deadline errors through deliberately, so what you are seeing is a genuine write stall on the reader's side.

    There is a structural asymmetry that makes this look one-sided: the server arms a rolling 30-second write deadline (from --idle-timeout / MINIO_IDLE_TIMEOUT, default 30s, re-armed before each write syscall), while the storage-REST client applies no read timeout to the response body at all — its only transport timeout covers response headers. So the sender always reports first, and the node that actually stalled logs nothing. That is why the errors look unexplained and why they never appear in pairs.

    Two stalls of this shape occur in normal operation: an S3 consumer reading slowly throttles the internode socket end-to-end, and the erasure decoder stops reading the moment it has enough shards to reconstruct — on a 16-drive EC:4 set that routinely leaves parity streams open with no reader until they are closed and drained.

    The part that does not add up

    Your cluster averages roughly 1 MB per object across 1,093,240 objects, which makes a typical shard about 87 KB. A write that size normally lands in the kernel send buffer immediately. For it to block for 30 seconds, the peer's receive window has to be pinned at zero — which ordinary read pacing on small objects does not produce.

    So either there is a long tail of much larger objects involved, or node-83 was genuinely stalled at the process level during those windows.

    What would let me close this out

    1. Did the old build really never log this? Please grep your pre-upgrade logs over a comparable window for i/o timeout without the line number, and specifically for storage-rest-server.go:629. If :629 appears, this is pre-existing and the upgrade only renumbered it.
    2. Object sizes. Do the bursts correlate with reads of your largest objects? Roughly what is your p99 object size, and is there a bucket with multi-GB objects being read when the spikes happen?
    3. Config. mc admin config get <alias> api, plus the values of MINIO_IDLE_TIMEOUT and MINIO_DRIVE_MAX_TIMEOUT (or confirmation that they are unset). The 30 seconds here comes from the idle timeout.
    4. The other side. When node-11 spikes, capture on the peer named in the error — the one that stopped reading. A 30-second GC pause, a blocked drive, or cgroup CPU throttling on the reader is the leading candidate and is completely invisible in the logs you currently have. mc admin trace -v --errors for the same window plus a 30-second CPU profile would settle it.

    Also useful: did any S3 client see a failed or slow GetObject during a burst? That tells us immediately whether this is user-visible or purely internal recovery noise.

  3. kh0mka commented on Aug 4, 2026

    @kh0mka
    Author

    Thanks for the detailed breakdown. Here are the answers to your closure criteria:

    1. Pre-upgrade logs & Line Numbers

    Not available – containers are recreated on update via Docker Compose, so pre-upgrade logs were lost. We have no line-number-based alerting or parsing rules; our monitoring matches purely on error content, so the :629→:628 shift did not cause false positives. This is most likely a pre-existing condition.

    2. Object Sizes

    Confirmed: no objects >1 GB exist. Max object size is 100–200 MB, average ~960 KB/object (shard ≈ 60–87 KB). No long tail of large objects. This confirms your hypothesis that the peer was genuinely stalled at the process/drive level, not blocked by large reads.

    3. Config & Timeouts

    MINIO_IDLE_TIMEOUT not set (default 30s), drive max_timeout=30s. The 30s in errors aligns exactly with these values.
    MINIO_DRIVE_MAX_TIMEOUT not set

    mc admin config get <alias> api:

    api requests_max=0 cluster_deadline=10s cors_allow_origin=* remote_transport_deadline=2h list_quorum=strict replication_priority=auto replication_max_workers=500 replication_max_lrg_workers=10 transition_workers=100 stale_uploads_cleanup_interval=6h stale_uploads_expiry=24h delete_cleanup_interval=5m odirect=on gzip_objects=off root_access=on sync_events=off object_max_versions=9223372036854775807
    

    4. The Other Side + Heterogeneous Storage Hypothesis

    Error matrix from all 4 nodes:

    Node Errors as Receiver (failed to read) Errors as Sender (peer failed to read from it)
    node-11 (.81) 0 418
    node-12 (.82) 387 180
    node-13 (.83) 368 198
    node-14 (.84) 221 180
    Total 976 976

    I believe this asymmetry is caused by heterogeneous storage across nodes. Unfortunately, the nodes do not have identical storage configurations: some use local SSDs, others use vSAN. Node-11 likely has the fastest storage, which explains why it never appears as a receiver (fast reader always drains socket before 30s) but is the top sender (slow receivers can’t keep up with its fast delivery). Node-12 being the worst receiver (387 errors) suggests it has the slowest storage backend.


    Conclusion

    Unfortunately, I wasn't able to capture the error in mc admin trace -v --errors today in my free time. I'll keep an eye on it; the CPU is fine. There are storage issues, in terms of configuration and performance differences. Given the confirmed heterogeneous storage (SSD vs vSAN across nodes) and the clear asymmetric error pattern that perfectly matches this hardware difference, could this be considered the root cause and sufficient to close this issue?

  4. Vonng commented on Aug 4, 2026

    @Vonng
    Member

    Thanks — this strongly supports a receiver-side stall, but I would not call heterogeneous storage the confirmed root cause yet.

    The important distinction is that ordinary speed differences are handled by TCP flow control. This error requires no write progress for approximately 30 seconds. vSAN tail latency could cause that, but so could downstream backpressure, process scheduling, or packet loss. Also, 100–200 MB objects are large enough to fill the transport buffers; the quoted 60–87 KB is per erasure block, not the complete shard stream.

    The sender/receiver matrix is consistent with node-11 being faster, but it is not conclusive because receiver roles are inferred from the same sender logs and may also reflect uneven frontend request routing.

    One correction to my earlier reply: normal erasure decoding does not routinely leave opened parity streams unread. It waits for the readers it starts. The more plausible stall points are between erasure blocks, while waiting for another shard or downstream writer, and during cleanup after an interrupted read.

    My conclusion is:

    • No evidence of a regression in the relevant code between these releases.
    • Receiver-side no-progress exceeding 30 seconds is confirmed.
    • Storage heterogeneity and vSAN latency are the leading suspects, but not yet proven.

    I am comfortable closing this as no identified software regression / likely infrastructure or backpressure issue, with the option to reopen if a packet capture, storage-latency trace, or reproducible digest-pinned A/B test points back to the release.

  5. moved this from Backlog to Done in Siloon Aug 4, 2026
  6. added
    question
    on Sep 15, 2026
  7. self-assigned this
    on Sep 15, 2026
  8. added theissue type on Sep 15, 2026
  9. added this to the 20260806 milestone on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

question

Type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions