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

Bug: cluster admin refresh medatadata report error when set Metadata.Full to false. #2069

Closed
3AceShowHand opened this issue Nov 19, 2021 · 4 comments
Labels
bug stale Issues and pull requests without any recent activity

Comments

@3AceShowHand
Copy link

3AceShowHand commented Nov 19, 2021

Versions

When there is no topic in the Kafka cluster, metadata cannot be reported, if we set Metadata.Full to false.

Please specify real version numbers or git SHAs, not just "Latest" since that changes fairly regularly.

Sarama Kafka Go
v1.12.7 3.0.0 1.17.2
Configuration
Config.Metadata.Full = false

What configuration values are you using for Sarama and Kafka?

Screen Shot 2021-11-19 at 11 20 33 PM

Logs

When filing an issue please provide logs from Sarama and Kafka if at all
possible. You can set sarama.Logger to a log.Logger to capture Sarama debug
output.

logs: CLICK ME

Problem Description
@3AceShowHand
Copy link
Author

Consider the following scenario:

For a totally new Kafka cluster, there do not exist any topics yet, user tries to fetch metadata, then creates the topic by calling admin.CreateTopic method.

At the moment, this is not allowed, I think this is a bug.

@nkostoulas
Copy link
Contributor

nkostoulas commented Jan 27, 2022

The docs do state:

ErrNoTopicsToUpdateMetadata is returned when Meta.Full is set to false but no specific topics were found to update the metadata.

I too don't get the intuition of that though.

@github-actions

This comment was marked as outdated.

@github-actions github-actions bot added the stale Issues and pull requests without any recent activity label Sep 7, 2023
@dnwe dnwe added bug and removed stale Issues and pull requests without any recent activity labels Sep 7, 2023
Copy link

github-actions bot commented Jan 6, 2024

Thank you for taking the time to raise this issue. However, it has not had any activity on it in the past 90 days and will be closed in 30 days if no updates occur.
Please check if the main branch has already resolved the issue since it was raised. If you believe the issue is still valid and you would like input from the maintainers then please comment to ask for it to be reviewed.

@github-actions github-actions bot added the stale Issues and pull requests without any recent activity label Jan 6, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale Issues and pull requests without any recent activity
Projects
None yet
Development

No branches or pull requests

3 participants