Skip to content

Conversation

@ishankhemani
Copy link

Description

AwaitingNonWebApplicationListener should only enter the await state for the
root, non-web ApplicationContext.
When a parent–child context hierarchy is present, the listener must not await
during child context shutdown.

This PR ensures the listener behaves correctly with multiple non-web
application contexts and adds a focused regression test to cover this scenario.

Changes

Prevent awaiting logic from being triggered by child ApplicationContext

Add unit test for non-web parent–child context lifecycle

Testing

Added testMultipleContextNonWebApplication

Tests pass locally

Fixes #13722
please review it sir when you get time @AlbumenJ @RainYuY

@zrlw
Copy link
Contributor

zrlw commented Jan 7, 2026

code format issue should be fixed by running mvn spotless:apply

Anshul-creator and others added 4 commits January 8, 2026 22:43
…pache#15974)

* test: clarify unsupported IPv6 behavior in NetUtils

* test: added IPV6 edgecase, fixed ambigious CIDR testcase
* support disableAutoInboundFlowControl api

* support back press

* fix

* fix

* Update dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/observer/CallStreamObserver.java

Co-authored-by: Copilot <[email protected]>

* Update dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/transport/TripleHttp2LocalFlowController.java

Co-authored-by: Copilot <[email protected]>

* Update dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/call/ClientCall.java

Co-authored-by: Copilot <[email protected]>

* Update dubbo-common/src/main/java/org/apache/dubbo/config/nested/TripleConfig.java

Co-authored-by: Copilot <[email protected]>

* Update dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/call/ClientCall.java

Co-authored-by: Copilot <[email protected]>

* fix

* fix

* fix test

* add isReady and setOnReadyHandler api

* fix

* fix

* fix Backpressure it

* fix

* fix

* ClientCallStreamObserver & ServerCallStreamObserver

* add license

* mvn spotless:apply

* fix dubbo plugin

* fix dubbo plugin spotless

* fix

* fix ut

* Add gRPC-compatible APIs and fix the integration tests

* fix

* fix

* remove default

* remove default

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Rain Yu <[email protected]>
Co-authored-by: Wang Chengming <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Jan 8, 2026

Codecov Report

❌ Patch coverage is 46.00000% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.73%. Comparing base (0bc5260) to head (aa00474).
⚠️ Report is 3 commits behind head on 3.3.

Files with missing lines Patch % Lines
...g/apache/dubbo/rpc/protocol/tri/TripleInvoker.java 33.33% 9 Missing and 3 partials ⚠️
...dubbo/reactive/AbstractTripleReactorPublisher.java 0.00% 6 Missing ⚠️
.../dubbo/common/stream/ServerCallStreamObserver.java 0.00% 2 Missing ⚠️
.../dubbo/rpc/protocol/tri/call/TripleClientCall.java 66.66% 2 Missing ⚠️
.../protocol/tri/command/InitOnReadyQueueCommand.java 83.33% 1 Missing and 1 partial ⚠️
...e/dubbo/reactive/ClientTripleReactorPublisher.java 0.00% 1 Missing ⚠️
...remoting/http12/h2/Http2ServerChannelObserver.java 0.00% 1 Missing ⚠️
...ntext/event/AwaitingNonWebApplicationListener.java 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                3.3   #15971      +/-   ##
============================================
- Coverage     60.70%   58.73%   -1.98%     
+ Complexity    11708       15   -11693     
============================================
  Files          1946     1948       +2     
  Lines         88701    88732      +31     
  Branches      13374    13379       +5     
============================================
- Hits          53849    52117    -1732     
- Misses        29342    30977    +1635     
- Partials       5510     5638     +128     
Flag Coverage Δ
integration-tests-java21 ?
integration-tests-java8 ?
samples-tests-java21 ?
samples-tests-java8 ?
unit-tests-java11 58.98% <46.00%> (-0.01%) ⬇️
unit-tests-java17 58.45% <46.00%> (-0.03%) ⬇️
unit-tests-java21 58.45% <46.00%> (-0.03%) ⬇️
unit-tests-java25 58.41% <46.00%> (-0.04%) ⬇️
unit-tests-java8 58.99% <46.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

AwaitingNonWebApplicationListener bug

6 participants