[pulsar io] make KafkaSourceRecord ack() non-blocking to avoid deadlock - #11435
Merged
Merged
Conversation
sijie
approved these changes
Jul 23, 2021
codelipenghui
approved these changes
Jul 23, 2021
Contributor
|
@dlg99 do you mind taking aa look as well ? is this fixing the deadlock you found ? |
Member
Author
|
And Here's the integration test result run on my local laptop: |
1 task
codelipenghui
pushed a commit
that referenced
this pull request
Jul 30, 2021
The `ack()` method of the `AbstractKafkaSourceRecord` should be non-blocking. Otherwise there'll be deadlock for pulsar-client-io thread and the main `public/default/debezium-mongodb-source-0` thread. And further blocks the whole debezium connector to work correctly. 1. remove the blocking `future.get()` call from `ack()` 2. move the commit logic into callbacks (cherry picked from commit b3892ee)
dlg99
pushed a commit
to dlg99/pulsar
that referenced
this pull request
Sep 24, 2021
### Motivation The `ack()` method of the `AbstractKafkaSourceRecord` should be non-blocking. Otherwise there'll be deadlock for pulsar-client-io thread and the main `public/default/debezium-mongodb-source-0` thread. And further blocks the whole debezium connector to work correctly. ### Modifications 1. remove the blocking `future.get()` call from `ack()` 2. move the commit logic into callbacks
eolivelli
pushed a commit
to datastax/pulsar
that referenced
this pull request
Sep 24, 2021
### Motivation The `ack()` method of the `AbstractKafkaSourceRecord` should be non-blocking. Otherwise there'll be deadlock for pulsar-client-io thread and the main `public/default/debezium-mongodb-source-0` thread. And further blocks the whole debezium connector to work correctly. ### Modifications 1. remove the blocking `future.get()` call from `ack()` 2. move the commit logic into callbacks
dlg99
pushed a commit
to dlg99/pulsar
that referenced
this pull request
Jan 11, 2022
The `ack()` method of the `AbstractKafkaSourceRecord` should be non-blocking. Otherwise there'll be deadlock for pulsar-client-io thread and the main `public/default/debezium-mongodb-source-0` thread. And further blocks the whole debezium connector to work correctly. 1. remove the blocking `future.get()` call from `ack()` 2. move the commit logic into callbacks
4 tasks
eolivelli
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jan 11, 2022
) The `ack()` method of the `AbstractKafkaSourceRecord` should be non-blocking. Otherwise there'll be deadlock for pulsar-client-io thread and the main `public/default/debezium-mongodb-source-0` thread. And further blocks the whole debezium connector to work correctly. 1. remove the blocking `future.get()` call from `ack()` 2. move the commit logic into callbacks Co-authored-by: Neng Lu <nlu@streamnative.io>
bharanic-dev
pushed a commit
to bharanic-dev/pulsar
that referenced
this pull request
Mar 18, 2022
### Motivation The `ack()` method of the `AbstractKafkaSourceRecord` should be non-blocking. Otherwise there'll be deadlock for pulsar-client-io thread and the main `public/default/debezium-mongodb-source-0` thread. And further blocks the whole debezium connector to work correctly. ### Modifications 1. remove the blocking `future.get()` call from `ack()` 2. move the commit logic into callbacks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The
ack()method of theAbstractKafkaSourceRecordshould be non-blocking. Otherwise there'll be deadlock for pulsar-client-io thread and the mainpublic/default/debezium-mongodb-source-0thread. And further blocks the whole debezium connector to work correctly.Modifications
future.get()call fromack()Verifying this change
Documentation
For contributor
For this PR, do we need to update docs?
No. Internal bug fix.