-
Notifications
You must be signed in to change notification settings - Fork 491
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
[ISSUE #55]Delete the corresponding DLQ and Retry Topic simultaneously when deleting the consumerGroup. #57
Conversation
…neously when deleting the consumerGroup.
src/main/java/org/apache/rocketmq/dashboard/service/impl/ConsumerServiceImpl.java
Outdated
Show resolved
Hide resolved
src/test/java/org/apache/rocketmq/dashboard/controller/ConsumerControllerTest.java
Show resolved
Hide resolved
String[] ns = configure.getNamesrvAddr().split(";"); | ||
nameServerSet = new HashSet<>(Arrays.asList(ns)); | ||
} | ||
mqAdminExt.deleteTopicInNameServer(nameServerSet, topic); |
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.
Just want to confirm whether there is a problem with the deleteTopicInNameServer
A SubGroup can exist in multiple brokers.
For example :
GROUP_1
|----- brokerA
|------brokerB
If we just want to delete GROUP_1 in brokerA, deleteTopicInNameServer will also be invoked. It will delete all the QueueData of this topic in namesvr, not sure whether it will cause issue or not.
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.
Yes, that's a good question, I will fix it in next commit.
src/main/java/org/apache/rocketmq/dashboard/service/impl/ConsumerServiceImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/rocketmq/dashboard/service/impl/ConsumerServiceImpl.java
Show resolved
Hide resolved
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.
Coverage has dropped a bit.
@zhangjidi2016 would you like to confirm why coverage drop a bit of coverage? We could fix it in the next pr. |
What is the purpose of the change
#55
Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice,
it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR
.[ISSUE #123] Fix UnknownException when host config not exist
. Each commit in the pull request should have a meaningful subject line and body.mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle
to make sure basic checks pass. Runmvn clean install -DskipITs
to make sure unit-test pass. Runmvn clean test-compile failsafe:integration-test
to make sure integration-test pass.