-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve][io] PIP-297: Support terminating Function & Connector with the fatal exception #21143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…the fatal exception
shibd
reviewed
Sep 13, 2023
...ctions/instance/src/main/java/org/apache/pulsar/functions/instance/JavaInstanceRunnable.java
Outdated
Show resolved
Hide resolved
pulsar-functions/api-java/src/main/java/org/apache/pulsar/functions/api/BaseContext.java
Show resolved
Hide resolved
...ctions/instance/src/main/java/org/apache/pulsar/functions/instance/JavaInstanceRunnable.java
Show resolved
Hide resolved
shibd
approved these changes
Sep 13, 2023
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21143 +/- ##
=============================================
+ Coverage 33.37% 73.16% +39.79%
- Complexity 12158 32456 +20298
=============================================
Files 1623 1887 +264
Lines 127410 140080 +12670
Branches 13933 15429 +1496
=============================================
+ Hits 42527 102496 +59969
+ Misses 79258 29472 -49786
- Partials 5625 8112 +2487
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
15 tasks
liangyuanpeng
pushed a commit
to liangyuanpeng/pulsar
that referenced
this pull request
Oct 11, 2023
…ache#21204) ### Motivation We have introduced the `SinkContext.fatal` method in apache#21143 This PR use this fatal method to handle the elastic sink connector exception correctly. ### Modifications - Use `SinkContext.fatal` to throw connector exception - Add state to the ElasticSearchClient
This was referenced Jul 17, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/function
doc-required
Your PR changes impact docs and you will update later.
ready-to-test
type/enhancement
The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PIP: #21079
Motivation
Please see PIP-297:
pulsar/pip/pip-297.md
Lines 71 to 91 in 3cb7926
Modifications
pulsar/pip/pip-297.md
Lines 108 to 112 in 3cb7926
Verifying this change
This change added tests.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: