这是indexloc提供的服务,不要输入任何密码
Skip to content

Handle non-retryable HTTP status codes as reported in the spec #1574

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

Conversation

pierDipi
Copy link
Member

@pierDipi pierDipi commented Dec 7, 2021

As reported in the spec:
https://github.com/knative/specs/blob/c348f501de9eb998b4fd010c54d9127033ee41be/specs/eventing/data-plane.md#event-acknowledgement-and-delivery-retry

Similar to SelectiveRetry function in eventing.

Proposed Changes

  • Handle non-retryable HTTP status codes

Release Note

Handle non-retryable HTTP status codes as reported in the spec: 
For more information: https://github.com/knative/specs/blob/c348f501de9eb998b4fd010c54d9127033ee41be/specs/eventing/data-plane.md#event-acknowledgement-and-delivery-retry

Docs

None

@knative-prow-robot knative-prow-robot added area/data-plane approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 7, 2021
@codecov
Copy link

codecov bot commented Dec 7, 2021

Codecov Report

Merging #1574 (06fe0b7) into main (f636235) will decrease coverage by 0.06%.
The diff coverage is 12.50%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1574      +/-   ##
============================================
- Coverage     75.35%   75.28%   -0.07%     
- Complexity      592      597       +5     
============================================
  Files           107      107              
  Lines          4135     4140       +5     
  Branches        170      171       +1     
============================================
+ Hits           3116     3117       +1     
- Misses          763      766       +3     
- Partials        256      257       +1     
Flag Coverage Δ
java-unittests 81.90% <12.50%> (-0.17%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ispatcher/impl/http/WebClientCloudEventSender.java 56.36% <12.50%> (-3.64%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f636235...06fe0b7. Read the comment docs.

return statusCode >= 500 || // Generic error
statusCode == 404 || // Endpoint does not exist
statusCode == 409 || // Conflict / Processing in progress
statusCode == 429; // Too Many Requests / Overloaded
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for completeness we have -1 there as well, in upstream ...

I guess that's due to a Golang thingy/bug... but just wanted to mention it here

Copy link
Contributor

@matzew matzew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 8, 2021
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: matzew, pierDipi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot merged commit c56aae3 into knative-extensions:main Dec 8, 2021
@pierDipi pierDipi deleted the KNATIVE_Align-retryable-status-code-to-spec branch February 19, 2025 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/data-plane lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants