Incorrect entry-exit state when assembling multiple chained SentinelReactorTransformer #1084
Labels
area/integrations
Issues or PRs related to integrations with open-source components
kind/bug
Category issues or prs related to bug.
Issue Description
Type: bug report
Describe what happened (or what feature you want)
Incorrect entry-exit state when assembling multiple chained
SentinelReactorTransformer
like this:When the flow control for the latter resource (e.g.
reactor-service-b
) is triggered, theSentinelReactorSubscriber
will signalcancel()
and propagate theBlockException
, but theSentinelReactorSubscriber
did not handle thehookOnCancel
appropriately, thus causing theAsyncEntry
of the former resourcereactor-service-a
not exited.Describe what you expected to happen
The
onCancel()
signal should be handled correctly, so the entry could be exited.How to reproduce it (as minimally and precisely as possible)
Run this code snippet:
We set a
FlowRule
for resourcereactor-service-b
to disallow its invocation. After the code snippet is executed, we could find that the inner AsyncEntry forreactor-service-a
is not exited.Tell us your environment
Sentinel 1.7.0-SNAPSHOT on
master
branch.The text was updated successfully, but these errors were encountered: