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] TieredMessageStore throws NPE when delete a topic without messages #8049

Closed
3 tasks done
bxfjb opened this issue Apr 22, 2024 · 0 comments · Fixed by #8050
Closed
3 tasks done

[Bug] TieredMessageStore throws NPE when delete a topic without messages #8049

bxfjb opened this issue Apr 22, 2024 · 0 comments · Fixed by #8050

Comments

@bxfjb
Copy link
Contributor

bxfjb commented Apr 22, 2024

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment

CentOS 7

RocketMQ version

develop

JDK Version

JDK 8

Describe the Bug

When TieredMessageStore delete an empty topic, DefaultMetaStore's method iterateQueue() would throw NPE for queueMetadataTable.get(topic) is null.

Steps to Reproduce

  1. Enable tiered store with DefaultMetadataStore.
  2. Create a topic, and do not produce message.
  3. Delete the topic at the dashboard, the NPE should be showed.

What Did You Expect to See?

The topic should be deleted normally.

What Did You See Instead?

The dashboard reports NPE.

Additional Context

No response

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 a pull request may close this issue.

1 participant