Repository navigation
[fix] Reconnection logic and Backoff policy doesn't work correctly - #1197
Conversation
|
@RobertIndie PTAL |
RobertIndie
left a comment
There was a problem hiding this comment.
I'm concerned that such breaking changes could significantly impact users. Users would have to implement the new methods introduced by the backoff policy, even if they haven't encountered this issue. Perhaps we could consider including this change in the 1.0 version.
I have initiated a discussion of the Go client 1.0.0: https://lists.apache.org/thread/h022q6nrk23tz2k0qpxjf6j8m1o4qsrt
Yes, I agree with you. |
|
Any updates? |
# Conflicts: # pulsar/consumer_partition.go # pulsar/internal/rpc_client.go # pulsar/producer_partition.go
|
@nodece The code conflicts have been resolved, but this PR involves changes to the public API. Do you recommend releasing it in version v0.13.0? |
A breaking change that we add new method to the In the user project, the user cannot import the |
Co-authored-by: Zixuan Liu <[email protected]>
Co-authored-by: Zixuan Liu <[email protected]>
Co-authored-by: Zixuan Liu <[email protected]>
Update:
pulsar-client-go/pulsar/consumer_partition.go Lines 1709 to 1712 in 1152cfc pulsar-client-go/pulsar/consumer_partition.go Lines 607 to 609 in 1152cfc
|
Co-authored-by: Zixuan Liu <[email protected]>
Co-authored-by: Zixuan Liu <[email protected]>
RobertIndie
left a comment
There was a problem hiding this comment.
Please help resolve the conflicts
# Conflicts: # pulsar/producer_partition.go # pulsar/producer_test.go
Co-authored-by: Zike Yang <[email protected]>
Co-authored-by: Zike Yang <[email protected]>
Fixes #1187
Modifications
backoff.goto thebackoffdirectory (because there are circular dependencies, they are not moved to the pulsar directory.)BackOffPolicyinterfaceIsMaxBackoffReached(delayReconnectTime, totalDelayReconnectTime time.Duration) boolThis is a breaking change that modifies the package name and interface name.
Package:
internal->backoffInterface name:
BackoffPolicy->PolicyVerifying this change
Does this pull request potentially affect one of the following parts:
If
yeswas chosen, please highlight the changesDocumentation