Skip to content

fix(netty): signal truncated response to publisher subscribers - #7499

Open
huong8373tt-beep wants to merge 2 commits into
aws:masterfrom
huong8373tt-beep:fix/s3-publisher-truncated-response-7465
Open

huong8373tt-beep wants to merge 2 commits into
aws:masterfrom
huong8373tt-beep:fix/s3-publisher-truncated-response-7465

Conversation

@huong8373tt-beep

Copy link
Copy Markdown

Summary

When a streamed response ends before its declared Content-Length, Netty validates the mismatch and fails the execute future, but toPublisher() subscribers previously received no terminal error. This change forwards the decorated validation exception to the body subscriber before preserving the existing execute-future notification and channel release behavior.

Testing

  • mvnw.cmd -pl :netty-nio-client -am -DskipTests install
  • mvnw.cmd -pl :netty-nio-client -Dtest=PublisherAdapterTest test
  • git diff --check

Fixes #7465.

Generated by AI tools and reviewed by the account owner.

Slai Agent Runtime performed the investigation, implementation, and test execution. The account owner authorized this contribution and is responsible for its content.

@huong8373tt-beep

Copy link
Copy Markdown
Author

Added PublisherAdapterTckTest in 7e32fbc2 to provide Reactive Streams TCK coverage for the changed PublisherAdapter, alongside the focused regression test.

Local verification passed:

  • mvnw.cmd -pl :netty-nio-client -am -Dtest=PublisherAdapterTest,PublisherAdapterTckTest -Dsurefire.failIfNoSpecifiedTests=false test
    • PublisherAdapterTest: 5 passed
    • PublisherAdapterTckTest: 38 run, 0 failures/errors (12 TCK tests skipped by the suite)
  • git diff --check

Slai Agent Runtime performed the investigation, implementation, and test execution. The account owner authorized this contribution and is responsible for its content.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG(S3): truncated response followed by TCP FIN leaves toPublisher() subscriber hanging

1 participant