[
https://issues.apache.org/jira/browse/ROCKETMQ-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15885021#comment-15885021
]
ASF GitHub Bot commented on ROCKETMQ-104:
-----------------------------------------
Github user vongosling commented on a diff in the pull request:
https://github.com/apache/incubator-rocketmq/pull/65#discussion_r103126453
--- Diff:
tools/src/main/java/org/apache/rocketmq/tools/command/SubCommand.java ---
@@ -21,11 +21,11 @@
import org.apache.rocketmq.remoting.RPCHook;
public interface SubCommand {
- public String commandName();
+ String commandName();
--- End diff --
Cool. JLS points out that the interface method is public abstract
> Make MQAdmin commands throw exceptions
> --------------------------------------
>
> Key: ROCKETMQ-104
> URL: https://issues.apache.org/jira/browse/ROCKETMQ-104
> Project: Apache RocketMQ
> Issue Type: Improvement
> Reporter: Roman Shtykh
> Assignee: Roman Shtykh
>
> *Why to throw exceptions?*
> With the current implementation you don't know if the command fails unless
> you look at console. This is one reason why errors in unit tests like in
> ROCKETMQ-77 can go unnoticed.
> If stack tracing is still needed, we can add logging when throwing exceptions.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)