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

[FLINK-24943][Connectors / Kinesis] Explicitly create KryoSerializer for SequenceNumber class in Kinesis Consumer #93

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

Cyberness
Copy link
Contributor

Purpose of the change

Create KryoSerializer for SequenceNumber class explicitly to allow disabling of Generic Types via disableGenericTypes() call.

Brief change log

Create KinesisStateUtil class with static method createShardsStateSerializer that explicitly assigns KryoSerializer to SequenceNumber class and use this method to initialize state
Create unit test that checks for compatibility of previous TypeInformation based serializer and explicitly created KryoSerializer
Replace Mokito calls with utility MockStreamingRuntimeContext to improve testability and unify initialization method of Streaming Runtime Context

Verifying this change

This change added tests and can be verified as follows:

  • Added unit tests
  • Manually verified by running the Kinesis connector on a local Flink cluster.

Significant changes

  • Dependencies have been added or upgraded
  • Public API has been changed (Public API is any class annotated with @Public(Evolving))
  • Serializers have been changed
  • New feature has been introduced
    • If yes, how is this documented? (not applicable / docs / JavaDocs / not documented)

…eSerializer` that explicitly assigns `KryoSerializer` to `SequenceNumber` class and use this method to initialize state

2. Create unit test that checks for compatibility of previous `TypeInformation` based serializer and explicitly created `KryoSerializer`
3. Replace `Mokito` calls with utility `MockStreamingRuntimeContext` to improve testability and unify initialization method of Streaming Runtime Context
@boring-cyborg
Copy link

boring-cyborg bot commented Sep 8, 2023

Thanks for opening this pull request! Please check out our contributing guidelines. (https://flink.apache.org/contributing/how-to-contribute.html)

Copy link
Contributor

@dannycranmer dannycranmer left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @Cyberness

@dannycranmer dannycranmer merged commit b996d1d into apache:main Sep 11, 2023
4 checks passed
@boring-cyborg
Copy link

boring-cyborg bot commented Sep 11, 2023

Awesome work, congrats on your first merged pull request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants