-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Produce - KIP 467 - v8 #4583
Produce - KIP 467 - v8 #4583
Conversation
daba407
to
c22ba01
Compare
733f3c8
to
c90c919
Compare
847ef5b
to
1189944
Compare
1189944
to
2e2091c
Compare
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.
LGTM! Thanks Anchit
src/rdkafka_request.c
Outdated
@@ -139,6 +139,7 @@ int rd_kafka_err_action(rd_kafka_broker_t *rkb, | |||
case RD_KAFKA_RESP_ERR__TIMED_OUT: | |||
case RD_KAFKA_RESP_ERR_REQUEST_TIMED_OUT: | |||
case RD_KAFKA_RESP_ERR_NOT_ENOUGH_REPLICAS_AFTER_APPEND: | |||
case RD_KAFKA_RESP_ERR_INVALID_MSG: |
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.
Move it down below after RD_KAFKA_RESP_ERR_NOT_ENOUGH_REPLICAS
as we know for sure the batch wasn't persisted
tests/0011-produce_batch.c
Outdated
rkmessages = calloc(sizeof(*rkmessages), msgcnt); | ||
for (i = 0; i < msgcnt; i++) { | ||
int *msgidp = malloc(sizeof(*msgidp)); | ||
char *t; |
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.
Remove unused variable
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.
LGTM!.
record_errors
anderror_msg
fields.RD_KAFKA_RESP_ERR_INVALID_MSG
retriable.