[ESQL] Type HTTP 200 truncated reads like 206/S3 #159716

Open
costin opened 12:18pm on September 18, 2026 wants to merge 500 Δ into elastic/elasticsearch main from
esql/http-truncated-read-diagnostics

Pull Request Overview

  • Opened on September 18, 2026
  • Status Open
  • Commit count 3 with first commit September 18, 2026

Total Delta

500 Total Diff Delta

Open Days

Open 0 weekdays

Test Delta

0 Diff Delta in Test Files
Breakdown by Phase

How long has this pull request spent in each phase of its lifecycle?

Fraction of total time Business days Phase
 
0.0 days Authoring 1 commit before pull request opened for review
 
0.2 days Awaiting first review
 
0.5 days Revising work with 2 commits in response to 1 review that left 10 comments

Total time for pull request still awaiting merge: 0.7 business days

Author avatar

[ESQL] Type HTTP 200 truncated reads like 206/S3

HTTP 200 skip-then-fill used to fail as IOException, so the mapper
rewrote it as a generic transient 503. Raise the same path-named
ExternalUnavailableException as 206 and S3 so the operator names
the object.

Comments Threads Pending Resolution

Resolved Comment Threads

bpintea reviewed and approved this work on September 18, 2026
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/datasources/KnownLengthBodyFill.java
Outdated
87
            path,
88
            offset,
89
            expectedLength
90
        );
91
    }
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/datasources/KnownLengthBodyFill.java
Outdated
58
                (long) offset + remaining,
59
                expectedLength
60
            );
61
        }
62
        DirectByteBufferCopies.copyChunkIntoDestination(dest.buffer(), offset, chunk);
x-pack/plugin/esql-datasource-http/src/main/java/org/elasticsearch/xpack/esql/datasource/http/DirectByteBufferBodyHandlers.java
Outdated
360
                if (failed) {
361
                    return;
362
                }
363
                if (skipRemaining > 0) {
364
                    transferred = null;