Skip to content

fix(tcp): dispose upstream connection pool - #7119

Open
dengliming wants to merge 1 commit into
apache:masterfrom
dengliming:fix-6753-dispose-tcp-connection-pool
Open

dengliming wants to merge 1 commit into
apache:masterfrom
dengliming:fix-6753-dispose-tcp-connection-pool

Conversation

@dengliming

Copy link
Copy Markdown
Member

Summary

  • expose connection-pool disposal from the TCP connection context
  • dispose the upstream pool during normal shutdown
  • clean up the pool when server binding fails while preserving suppressed cleanup errors

Testing

  • mvn -q -pl shenyu-protocol/shenyu-protocol-tcp -am -DskipTests=false -Dcheckstyle.skip=false -Dtest=TcpBootstrapServerTest -DfailIfNoTests=false test

Fixes #6753

@Aias00 Aias00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved as PMC (Aias00). Reviewed the diff — small, well-scoped fix with regression tests; mergeable. Note: the only failing CI checks (shenyu-integrated-test-*/e2e-case-logging-rocketmq) are failing cluster-wide across unrelated PRs (shared CI-env issue), not caused by this change.

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] TcpBootstrapServer.shutdown never disposes the upstream ConnectionProvider (connection-pool leak)

2 participants