GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — [fix][fn] Honour consumerCryptoFailureAction in the Python function runtime by Zhianii · Pull Request #26490 · apache/pulsar Conversation
Contributor
Fixes #26481 Motivation
The pinned Modifications
Verifying this changeThis change added tests and can be verified as follows:
Run locally with Does this pull request potentially affect one of the following parts:If the box was checked, please highlight the changes
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…untime Forward ConsumerSpec.cryptoSpec.consumerCryptoFailureAction to the Python client's subscribe() call, mirroring how the Java runtime applies it in PulsarSource. The action was previously accepted by pulsar-admin, reported back by `functions get` and then silently dropped, so the client default (FAIL) always applied and a configured DISCARD or CONSUME was ignored. The argument is omitted when no cryptoSpec is configured - subscribe() validates it with _check_type, which rejects None. When a cryptoSpec is present the action is always forwarded; the proto3 enum default (FAIL) equals the client default, so unset behavior is unchanged. The producer-only SEND value falls back to FAIL, like the compression mapping treats values without a consumer equivalent. Fixes apache#26481 Assisted-by: Claude Code
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Changes recommendedThe consumer setup still calls Once you've addressed the issues Copilot identified, you can request another Copilot review. Pull request overviewThis PR fixes a Python Functions runtime parity gap by honoring Changes:
File summaries
Review details
💡 Add a
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. …-crypto-failure-action Signed-off-by: Matteo Merli <[email protected]> Cover the setup_consumers() call site on the plain and regex inputSpecs paths, and that nothing is passed without a cryptoSpec. Document that the Java runtime rejects SEND for a consumer while the Python runtime falls back to FAIL. Signed-off-by: Matteo Merli <[email protected]>
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
merlimat
approved these changes
Uh oh!
There was an error while loading. Please reload this page.
lhotari
pushed a commit
that referenced
this pull request
…untime (#26490) Signed-off-by: Matteo Merli <[email protected]> Co-authored-by: Matteo Merli <[email protected]> (cherry picked from commit 74ba0c6)
poorbarcode
pushed a commit
to poorbarcode/pulsar
that referenced
this pull request
…untime (apache#26490) Signed-off-by: Matteo Merli <[email protected]> Co-authored-by: Matteo Merli <[email protected]> (cherry picked from commit 74ba0c6)
poorbarcode
pushed a commit
to poorbarcode/pulsar
that referenced
this pull request
…untime (apache#26490) Signed-off-by: Matteo Merli <[email protected]> Co-authored-by: Matteo Merli <[email protected]> (cherry picked from commit 74ba0c6)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewers
Copilot code review
Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Uh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabelsProjectsDevelopmentSuccessfully merging this pull request may close these issues. [Python Functions] Python instance runtime silently ignores consumerCryptoFailureActionUh oh!
There was an error while loading. Please reload this page. 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. | |||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |