Skip to content
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

implemented update subscription #427

Conversation

astelmashenko
Copy link
Member

Fixes #

Updates subscription configuration on dispatcher: retryConfig, url, reply, deadLetter

  • 🐛 Fix bug

Release Note

Fixes updating of existing subscriptions on dispatcher: retryConfig, url, reply, deadLetter

@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 11, 2023
@knative-prow knative-prow bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 11, 2023
@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Merging #427 (862e282) into release-1.10 (7bd5300) will increase coverage by 6.42%.
The diff coverage is 67.74%.

@@               Coverage Diff                @@
##           release-1.10     #427      +/-   ##
================================================
+ Coverage         39.15%   45.57%   +6.42%     
================================================
  Files                29       29              
  Lines              1931     1953      +22     
================================================
+ Hits                756      890     +134     
+ Misses             1129     1008     -121     
- Partials             46       55       +9     
Files Changed Coverage Δ
pkg/channel/jetstream/dispatcher/reconciler.go 57.29% <33.33%> (+29.18%) ⬆️
pkg/channel/jetstream/dispatcher/dispatcher.go 50.61% <81.81%> (+25.50%) ⬆️

... and 2 files with indirect coverage changes

@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 11, 2023
@astelmashenko astelmashenko marked this pull request as ready for review September 11, 2023 13:58
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 11, 2023
@knative-prow knative-prow bot requested a review from matzew September 11, 2023 13:58
@astelmashenko
Copy link
Member Author

cc @dan-j

@astelmashenko
Copy link
Member Author

/assign @pierDipi

@astelmashenko astelmashenko marked this pull request as draft September 12, 2023 11:49
@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 12, 2023
@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 12, 2023
@astelmashenko astelmashenko marked this pull request as ready for review September 12, 2023 14:33
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 12, 2023
Copy link
Member

@pierDipi pierDipi 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 knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Sep 13, 2023
@knative-prow
Copy link

knative-prow bot commented Sep 13, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: astelmashenko, 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 knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 13, 2023
@knative-prow knative-prow bot merged commit a7bb71a into knative-extensions:release-1.10 Sep 13, 2023
@astelmashenko astelmashenko deleted the feature/release-1.10/update-subscriptions branch September 13, 2023 10:39
@astelmashenko
Copy link
Member Author

/cherrypick main

@knative-prow-robot
Copy link
Contributor

@astelmashenko: new pull request created: #429

In response to this:

/cherrypick main

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.

astelmashenko added a commit to astelmashenko/eventing-natss that referenced this pull request Oct 9, 2023
* implemented update subscription

* do not call addstream if it is existing, to prevent error propagation

* added comments

* added reconciler test

* added reconciler tests

* removed unused types

* added check for err
astelmashenko added a commit to astelmashenko/eventing-natss that referenced this pull request Oct 9, 2023
* implemented update subscription

* do not call addstream if it is existing, to prevent error propagation

* added comments

* added reconciler test

* added reconciler tests

* removed unused types

* added check for err
knative-prow bot pushed a commit that referenced this pull request Jan 4, 2024
* removed timer which marked messages as InProgress

* goimports

* implemented update subscription (#427)

* implemented update subscription

* do not call addstream if it is existing, to prevent error propagation

* added comments

* added reconciler test

* added reconciler tests

* removed unused types

* added check for err

* implemented retries based on JetStream; consumer ackWait and maxDeliver are not come from Subscription

* removed timer which marked messages as InProgress

* goimports

* implemented retries based on JetStream; consumer ackWait and maxDeliver are not come from Subscription

* changed nil to noRetries

* removed timer which marked messages as InProgress

* goimports

* implemented update subscription (#427)

* implemented update subscription

* do not call addstream if it is existing, to prevent error propagation

* added comments

* added reconciler test

* added reconciler tests

* removed unused types

* added check for err

* implemented retries based on JetStream; consumer ackWait and maxDeliver are not come from Subscription

* changed nil to noRetries

* updated nats client lib, fixed backoff logic

* update codeget and removed commented code

* implemented exponential backoff right way on JetStream side

* removed timer which marked messages as InProgress

* goimports

* implemented retries based on JetStream; consumer ackWait and maxDeliver are not come from Subscription

* updated nats client lib, fixed backoff logic

* update codeget and removed commented code

* implemented exponential backoff right way on JetStream side

* removed timer which marked messages as InProgress

* goimports

* implemented retries based on JetStream; consumer ackWait and maxDeliver are not come from Subscription

* updated nats client lib, fixed backoff logic

* update codeget and removed commented code

* implemented exponential backoff right way on JetStream side

* rebased

* go mod tidy/vendor

* updatecodegen

* added calcuation of request deadline

* removed logging err back

* updated tests to cover missing lines

* using retryconfig.timeout as fallback, when there is no consumerTemplate.ackWait

* fix possible nil pointer error

* re-implemented message_dispatcher for jetstream side retries

* go-imports message_dispatcher.go

* tests: message_dispatcher.go

* goimports: message_dispatcher.go
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. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants