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

Fix calls with empty list #4480

Merged
merged 5 commits into from
Oct 24, 2023
Merged

Fix calls with empty list #4480

merged 5 commits into from
Oct 24, 2023

Conversation

emasab
Copy link
Collaborator

@emasab emasab commented Oct 23, 2023

DescribeTopics and ListOffsets should return an empty array if and empty array is passed as parameter.
Consistent with Java and user friendly for users using filter and map.

Copy link
Contributor

@milindl milindl left a comment

Choose a reason for hiding this comment

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

lgtm, just one minor thing

rd_kafka_admin_result_new(rko_fanout);
/* Enqueue empty result on application queue, we're done. */
rd_kafka_admin_result_enq(rko_fanout, rko_result);
goto err;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: it's better to call rd_kafka_admin_common_worker_destroy and then let it follow the normal flow down rather than goto err as this is not an error (at least semantically it's not considered an error case now even if the code is the same)

@emasab emasab merged commit 95a542c into master Oct 24, 2023
2 checks passed
@emasab emasab deleted the dev_fix_calls_with_empty_list branch October 24, 2023 18:49
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.

None yet

2 participants