Skip to content

[minor][cdc-runtime] Run schema coordinator logic asynchronously to avoid blocking the main thread#3577

Merged
leonardBang merged 3 commits into
apache:masterfrom
yuxiqian:fix/run-coordinator-in-event-loop
Aug 27, 2024
Merged

[minor][cdc-runtime] Run schema coordinator logic asynchronously to avoid blocking the main thread#3577
leonardBang merged 3 commits into
apache:masterfrom
yuxiqian:fix/run-coordinator-in-event-loop

Conversation

@yuxiqian

@yuxiqian yuxiqian commented Aug 27, 2024

Copy link
Copy Markdown
Member

This tweaks SchemaRegistry coordinator to let it handle requests / trigger checkpoints in background threads to avoid blocking the main thread.

@yuxiqian yuxiqian force-pushed the fix/run-coordinator-in-event-loop branch from f0ba62c to 7a7477f Compare August 27, 2024 06:58
@leonardBang

Copy link
Copy Markdown
Contributor

@loserwang1024 Would you like to review this PR when you have time ?

executorService,
metadataApplier,
routes,
SchemaChangeBehavior.EVOLVE);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LENIENT ?

@leonardBang leonardBang changed the title [hotfix] Run schema coordinator logic asynchronously to avoid blocking the main thread [minor][cdc-runtime] Run schema coordinator logic asynchronously to avoid blocking the main thread Aug 27, 2024

@leonardBang leonardBang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @yuxiqian for the fix, +1. The failed case reason is clear and not related to this PR, will merge this PR first.

@leonardBang leonardBang merged commit a876af2 into apache:master Aug 27, 2024
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.

2 participants