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

DBZ-8307 Fix loss data issue for RabbitMQ #136

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

Qwedir
Copy link

@Qwedir Qwedir commented Nov 1, 2024

Done based on the principle of: #96

Link issue:
https://issues.redhat.com/browse/DBZ-8307

@jpechane
Copy link
Contributor

jpechane commented Nov 1, 2024

@Qwedir Thanks, LGTM. Could you please solve the problem for RabbitMqStreamNativeChangeConsumer too?

@Qwedir
Copy link
Author

Qwedir commented Nov 3, 2024

@jpechane I understand and see the issue.
Here’s what I suggest as a solution, but I haven’t tested it yet.

Copy link
Contributor

@jpechane jpechane left a comment

Choose a reason for hiding this comment

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

@Qwedir Nice work, I left two addiitional comments but I beleive the implementation as scuh is correct.

committer.markBatchFinished();
}
else {
LOGGER.error("Batch processing was incomplete due to record processing errors.");
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe an exception should be thrown here.

Copy link
Author

Choose a reason for hiding this comment

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

done


committer.markProcessed(record);
if (!latch.await(producerConfirmTimeout, TimeUnit.SECONDS)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO we need a new config option for this wait set to a larger default value as timeout for sending a single message could be different to sending a batch.

Copy link
Author

Choose a reason for hiding this comment

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

done

…itMqStreamNativeChangeConsumer.handleBatch
@Qwedir Qwedir requested a review from jpechane November 8, 2024 09:01
@jpechane jpechane merged commit af0d8c3 into debezium:main Nov 12, 2024
2 checks passed
@jpechane
Copy link
Contributor

@Qwedir Applied, thanks! Could you please add a change to the docs too? Thanks

https://github.com/debezium/debezium/blob/main/documentation/modules/ROOT/pages/operations/debezium-server.adoc

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