-
Notifications
You must be signed in to change notification settings - Fork 80
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
Conversation
@Qwedir Thanks, LGTM. Could you please solve the problem for |
@jpechane I understand and see the issue. |
There was a problem hiding this 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."); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…itMqStreamNativeChangeConsumer.handleBatch
@Qwedir Applied, thanks! Could you please add a change to the docs too? Thanks |
Done based on the principle of: #96
Link issue:
https://issues.redhat.com/browse/DBZ-8307