[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 #159716 quality checks

Code files and functions touched by this pull request are analyzed below.

Quality targets

How does this pull request compare to chosen code quality targets? Read more about code quality targets.

Target name Target value This PR
Maximum Diff Delta per PR 750 500
Maximum comment count per PR 20 10
Pull request maximum business days between activity 3 1
Pull request maximum business days open 10 1

Coupled files

Are there any files from this commit that are always committed alongside another file? This often suggests that there exists code coupling to potentially remove. Read more about code coupling

Committed together % Code file
Coupled code file
Commits in PR with both
100 x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/datasources/DirectByteBufferCopies.java
x-pack/plugin/esql-datasource-http/src/main/java/org/elasticsearch/xpack/esql/datasource/http/DirectByteBufferBodyHandlers.java
1
100 x-pack/plugin/esql-datasource-http/src/test/java/org/elasticsearch/xpack/esql/datasource/http/DirectByteBufferBodyHandlersTests.java
x-pack/plugin/esql-datasource-http/src/main/java/org/elasticsearch/xpack/esql/datasource/http/DirectByteBufferBodyHandlers.java
1
92 x-pack/plugin/esql-datasource-http/src/test/java/org/elasticsearch/xpack/esql/datasource/http/DirectByteBufferBodyHandlersTests.java
x-pack/plugin/esql-datasource-s3/src/main/java/org/elasticsearch/xpack/esql/datasource/s3/KnownLengthAsyncResponseTransformer.java
1
77 x-pack/plugin/esql-datasource-http/src/main/java/org/elasticsearch/xpack/esql/datasource/http/DirectByteBufferBodyHandlers.java
x-pack/plugin/esql-datasource-s3/src/main/java/org/elasticsearch/xpack/esql/datasource/s3/KnownLengthAsyncResponseTransformer.java
1

️ Biggest functions grown or shrunk by pull request

Which functions had their line count change as part of this pull request?

Qualified function name View whole function Lines removed Lines added Final line count
DirectByteBufferBodyHandlers::onComplete 9 6 26
DirectByteBufferBodyHandlersTests::testSkipThenFillShortBodyAfterSkipFails 2 6 20
DirectByteBufferBodyHandlersTests::testSkipThenFillAtEofWithNoBytesRemainingFails 1 4 18
DirectByteBufferBodyHandlers::onNext 10 2 17
DirectByteBufferBodyHandlersTests::testSkipThenFillPositionBeyondBodyFails 0 3 14