-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add support for max.request.size and batch.size configuration for Kafka Event Listener
#26132
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
Add support for max.request.size and batch.size configuration for Kafka Event Listener
#26132
Conversation
|
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
ebyhr
left a comment
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 left some reivew comments in your older PR. Please address those comments.
de6fd23 to
a6cda56
Compare
|
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
I have already resolved these comments. Thanks! |
...ent-listener/src/main/java/io/trino/plugin/eventlistener/kafka/KafkaEventListenerConfig.java
Outdated
Show resolved
Hide resolved
a6cda56 to
d655ca2
Compare
|
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
...ent-listener/src/main/java/io/trino/plugin/eventlistener/kafka/KafkaEventListenerConfig.java
Outdated
Show resolved
Hide resolved
d655ca2 to
f2df89f
Compare
|
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
f2df89f to
6805c6c
Compare
|
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
6805c6c to
20fded6
Compare
|
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
...ent-listener/src/main/java/io/trino/plugin/eventlistener/kafka/KafkaEventListenerConfig.java
Outdated
Show resolved
Hide resolved
|
@vmtuan12 Have you already submitted CLA? |
Yes, I sent the email 5 days ago, but I think it has not been processed. My email is [email protected], can you check that for me? |
20fded6 to
45ab732
Compare
|
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
| return batchSize; | ||
| } | ||
|
|
||
| @ConfigDescription("Attempt to batch records/messages together up to batch.size bytes before sending") |
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.
Could you update the config description? to me it's unclear what is batch.size bytes means?
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.
it means that messages will be buffered before being sent, and sent when the sum of message size >= batch.size, instead of sending every individual message
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.
If the description is modified to "Query events will be buffered, and sent when their total size reaches batch.size", will it be better?
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.
How about follow the document part that you described the config seems better
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.
Ok thanks! I have editted it
45ab732 to
9fce061
Compare
|
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
|
@ebyhr please review again |
f7053e9 to
98270f8
Compare
...ent-listener/src/main/java/io/trino/plugin/eventlistener/kafka/KafkaEventListenerConfig.java
Outdated
Show resolved
Hide resolved
chenjian2664
left a comment
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.
Looks good
a3963b9 to
07729fd
Compare
|
The commit message : |
07729fd to
f45f965
Compare
|
That looks too long. I changed to "Support max.request.size and batch.size config in Kafka Event Listener" |
|
Can this be merged? |
72870e0 to
01beda7
Compare
|
@vmtuan12 Please use |
|
I do not have permission to merge into Master. Can you merge it @ebyhr |
Description
Add support for
max.request.sizeandbatch.sizeconfiguration for Kafka producer of Kafka Event ListenerFixes #26129
Release notes
(x) Release notes are required, with the following suggested text: