-
Notifications
You must be signed in to change notification settings - Fork 225
Conversation
Signed-off-by: Pierangelo Di Pilato <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: pierDipi The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @pierDipi. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: Pierangelo Di Pilato <[email protected]>
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.
Produced via:
prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github | grep -v docs/cmd/)
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.
Produced via:
prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github | grep -v docs/cmd/)
nice! /ok-to-test |
session sarama.ConsumerGroupSession, | ||
message *sarama.ConsumerMessage, | ||
) error { | ||
return wait.ExponentialBackoff(consumer.backoff, func() (bool, error) { |
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.
we want to rely on the CloudEvent SDK to do the retry. Also look at the delivery spec for additional strategies.
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.
Not here, because we use bindings apis so we don't rely on client
Signed-off-by: Pierangelo Di Pilato <[email protected]>
@pierDipi thanks for starting tackling this, but I'm not sure this should be solved at kafkachannel level... |
And I would love to explore a library before implementing this manually |
The following is the coverage report on the affected files.
|
This also gives us the ability to have fine grained retries: eg if the destination accepts the message but the reply fails, there is no point to retry again on destination |
@pierDipi: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Agree
We can use k8s.io/apimachinery/pkg/util/wait package for |
yeah i think it's definitely a good idea, given that we already depend on this package it's even better |
I think you should close this and work on dispatcher directly, in order to have the retry transparent to the channel implementation |
I think e2e tests here are needed |
Or should we move them to |
Yeah maybe we should have them directly in eventing |
Fixes #933
Fixes #1105
Fixes #753
Fixes #596
Proposed Changes