-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][fn] Fix graceful Pulsar Function shutdown so that consumers and producers are closed#25157
[fix][fn] Fix graceful Pulsar Function shutdown so that consumers and producers are closed#25157lhotari merged 1 commit intoapache:masterfrom
Conversation
Fixes #25154
Motivation
While investigating a flaky test, I noticed that a Pulsar Function instance didn't shutdown gracefully due to interrupted thread status. The change in #25140 brought this to surface since closing producers gracefully requires that the calling thread isn't interrupted.
Modifications
Clear the interrupted state of the current thread in the Function instance before proceeding to call the close method.
Documentation
-
doc -
doc-required -
doc-not-needed -
doc-complete
liangyepianzhou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #25157 +/- ## ============================================= + Coverage 37.48% 72.53% +35.05% - Complexity 13220 34226 +21006 ============================================= Files 1899 1956 +57 Lines 150586 154750 +4164 Branches 17159 17645 +486 ============================================= + Hits 56440 112241 +55801 + Misses 86464 33539 -52925 - Partials 7682 8970 +1288
Flags with carried forward coverage won't be shown. Click here to find out more.
New features to boost your workflow:
|
(cherry picked from commit 0bf560f)
(cherry picked from commit dfb172e)
(cherry picked from commit 0bf560f)
(cherry picked from commit 4183569)
(cherry picked from commit 0bf560f)
(cherry picked from commit dfb172e)
(cherry picked from commit 0bf560f)
(cherry picked from commit 4183569)
(cherry picked from commit 0bf560f)
(cherry picked from commit dfb172e)
(cherry picked from commit 0bf560f)
(cherry picked from commit dfb172e)
(cherry picked from commit 0bf560f)
(cherry picked from commit dfb172e)
(cherry picked from commit 0bf560f)
(cherry picked from commit dfb172e)