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

[cdc-runtime] Setup waitFlushSuccess before responding operator to flush #2805

Merged

Conversation

PatrickRen
Copy link
Contributor

This pull request fixes a bug in SchemaRegistryRequestHandler, which is caught here.

There might be a case that sink flushes faster than schema operator requesting release upstream. In that case waitFlushSuccess has not been set when sink has flushed successfully, which will lead to a NullPointerException.

Copy link
Contributor

@ruanhang1993 ruanhang1993 left a comment

Choose a reason for hiding this comment

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

startNextSchemaChangeRequest also need to be changed.

…ush.

There might be a case that sink flushes faster than schema operator requesting release upstream. In that case waitFlushSuccess has not been set when sink has flushed successfully, which will lead to a NullPointerException.
@PatrickRen PatrickRen force-pushed the fix-flush-faster-than-request-release branch from 934f2d3 to d8a6044 Compare December 4, 2023 06:22
Copy link
Contributor

@ruanhang1993 ruanhang1993 left a comment

Choose a reason for hiding this comment

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

LGTM.

@leonardBang leonardBang merged commit 9ce8450 into apache:master Dec 4, 2023
17 checks passed
@leonardBang leonardBang added this to the V3.0.0 milestone Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants