[improve] configure whether function consumer should skip to latest#17214
Conversation
0ebc332 to
3e3aa03
Compare
|
/pulsarbot run-failure-checks |
|
The pr had no activity for 30 days, mark with Stale label. |
|
@nlu90 help handle Conflicting files. |
|
The pr had no activity for 30 days, mark with Stale label. |
|
/pulsarbot run-failure-checks |
Codecov Report
@@ Coverage Diff @@
## master #17214 +/- ##
=============================================
+ Coverage 32.42% 61.40% +28.98%
- Complexity 6347 23020 +16673
=============================================
Files 1644 1833 +189
Lines 123712 143586 +19874
Branches 13486 16890 +3404
=============================================
+ Hits 40109 88170 +48061
+ Misses 77694 47233 -30461
- Partials 5909 8183 +2274
Flags with carried forward coverage won't be shown. Click here to find out more.
|
| bool cleanupSubscription = 11; | ||
| SubscriptionPosition subscriptionPosition = 12; | ||
| uint64 negativeAckRedeliveryDelayMs = 13; | ||
| bool skipToLatest = 14; |
There was a problem hiding this comment.
@nlu90 - was this discussed on the mailing list? This is a protobuf change. We have a general rule that those go through the PIP process. While there could be exceptions, we should always post about these kinds of changes on the mailing list.
There was a problem hiding this comment.
@michaeljmarshall As we discussed via slack, I'll email the mailing list about the function proto change.
But it should be backward compatible and won't cause any issue for previous users.
|
Hi @nlu90, I'm checking in to follow up with the doc updates. Did you have any plans to update the docs? |
…latest (apache#17214)" This reverts commit bf982f4.
|
@nlu90 shall we add |
(If this PR fixes a github issue, please add
Fixes #<xyz>.)Fixes #
(or if this PR is one task of a github issue, please add
Master Issue: #<xyz>to link to the master issue.)Master Issue: #
Motivation
In certain failure cases, the function needs to skip all the content between the last successfully Acked message and the latest message in the topic in order for quick recovery.
Modifications
consumer.seek(MessageId.latest)if the skip flag is setVerifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If
yeswas chosen, please highlight the changesDocumentation
Check the box below or label this PR directly.
Need to update docs?
doc-required(Your PR needs to update docs and you will update later)
doc-not-needed(Please explain why)
doc(Your PR contains doc changes)
doc-complete(Docs have been already added)