-
Notifications
You must be signed in to change notification settings - Fork 24
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
[FLINK-33925][connectors/opensearch] Allow customising bulk failure handling #39
Conversation
Thanks for opening this pull request! Please check out our contributing guidelines. (https://flink.apache.org/contributing/how-to-contribute.html) |
@reswqa, I checked the CI logs and it looks like |
Hey @schulzp. Additionally, Flink version has been updated to 1.18.1, Please fix CI target version. |
Hey @hajimeni!
The PR you mentioned has been merged in 2023, that way before I opened this one. I'd like to help here but I feel lost. If I run
What should happen next? Is the build process supposed to just accept those violations instead of failing? Is there any documentation on archunit in the context of flink projects?
That's out of scope of this PR, isn't it? I looked at the PR workflow for flink-connector-elasticsearch but even there it's 1.18-SNAPSHOT. What is supposed to be changed? |
Hey, @schulzp. I have created a PR for testing. CI passes, so it still seems that the differences in the archunit-violations path are relevant. |
flink-connector-opensearch/archunit-violations/4382f1f0-807a-45ff-97d8-42f72b6e9484
Outdated
Show resolved
Hide resolved
…andling Extracted `BulkResponseInspector` interface to allow custom handling of (partially) failed bulk requests. If not overridden, default behaviour remains unchanged and partial failures are escalated. * fixes https://issues.apache.org/jira/browse/FLINK-33925 * allows custom metrics to be exposed
7114ab3
to
86b6d9b
Compare
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.
Thanks @schulzp, LGTM. And I think I've already reviewed the changes in elasticsearch connector repository.
Awesome work, congrats on your first merged pull request! |
This is a back port of the implementation for the elasticsearch connector, see FLINK-32028, to achieve consistent APIs.
Extracted
BulkResponseInspector
interface to allow custom handling of (partially) failed bulk requests. If not overridden, default behaviour remains unchanged and partial failures are escalated.