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

Fix kinesis sink backoff class not found #10744

Merged

Conversation

gaoran10
Copy link
Contributor

@gaoran10 gaoran10 commented May 30, 2021

Motivation

Currently, the class Backoff in the project Pulsar client impl, the Kinesis sink connector want to use this class, the dependency org.apache.pulsar:pulsar-client-original is needed, but this will increase the connector size, so we could add a new class Backoff in the function io-core, then the class Backoff could be reused by other connectors.

Modifications

Add the class Backoff in the project function io-core.

Verifying this change

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

@gaoran10 gaoran10 self-assigned this May 30, 2021
* All variables are in TimeUnit millis by default.
*/
@Data
public class Backoff {
Copy link
Contributor

Choose a reason for hiding this comment

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

this class is becoming part of the Public API.
please annotate it with Stability annotations.

Can't you move this class to the Kinesis connector module ?

I had a similar discussion with @vroyer that wanted to add a SslConfig class in the public Pulsar IO package.

those additions should be done with care because once we add something to the public API we have to maintain it in the future

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I think you are right, it seems that not all connectors need this class. I move it to the project Kinesis connector.

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

LGTM

@eolivelli eolivelli merged commit e19f647 into apache:master May 31, 2021
@gaoran10 gaoran10 deleted the fix-kinesis-sink-backoff-class-not-found branch May 31, 2021 08:20
wangjialing218 pushed a commit to wangjialing218/pulsar that referenced this pull request May 31, 2021
* copy the class `Backoff` to the project Kinesis connector
yangl pushed a commit to yangl/pulsar that referenced this pull request Jun 23, 2021
* copy the class `Backoff` to the project Kinesis connector
codelipenghui pushed a commit that referenced this pull request Jun 27, 2021
* copy the class `Backoff` to the project Kinesis connector

(cherry picked from commit e19f647)
@codelipenghui codelipenghui added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Jun 27, 2021
bharanic-dev pushed a commit to bharanic-dev/pulsar that referenced this pull request Mar 18, 2022
* copy the class `Backoff` to the project Kinesis connector
@tisonkun tisonkun mentioned this pull request Mar 28, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants