Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Bug] QoS count command ignores the times argument after cd

Open Beginner friendly
#16,530 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@CCCLL is already working on this.

Since Oct 20, 2026.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
cli

Research direction

Read CountTelnet#execute and its command usage in the QoS CountTelnet implementation; the issue identifies the argument parsing that selects times. Compare the arguments after cd with those when the service name is supplied, then run or add coverage for count length 3 after cd repro.Echo. Done when it prints the statistics table three times, matching the command without cd.

Written by the indexing model from the issue text.

Description

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

3.3 branch (cb05763298), OpenJDK 21, macOS. The argument parsing goes back to CountTelnetHandler in 2.0.7 and was carried over to the QoS CountTelnet in #8175.

Steps to reproduce this issue
  1. Start a provider with QoS enabled and a dubbo service (here repro.Echo with a method length).
  2. Connect to the QoS port and run cd repro.Echo, then count length 3.

The statistics table is printed once. Without cd, count repro.Echo length 3 prints it three times, one second apart.

CountTelnet#execute reads the times like this:

if (service == null || service.length() == 0) {
    service = args[0];
    method = args.length > 1 ? args[1] : null;
} else {
    method = args.length > 0 ? args[0] : null;
}
if (StringUtils.isNumber(method)) {
    times = method;
    method = null;
} else {
    times = args.length > 2 ? args[2] : "1";
}

After cd, the arguments are [method, times], so args[2] does not exist and times falls back to "1". (count length 3 5 after cd runs five times.)

What you expected to happen

count length 3 after cd repro.Echo prints the table three times, like count repro.Echo length 3. The usage message of the command also describes cd XxxService as an alternative to giving the service name (count XxxService xxxMethod 10 ... or "cd XxxService" firstly).

Anything else

count 3 after cd (no method) already works, because a numeric first argument is taken as the times.

Are you willing to submit a pull request to fix on your own?
  • Yes I am willing to submit a pull request on my own!
Dominant language
Java
Stars
41.6k
Forks
26.3k
Avg merge
19h 56m
Merged PRs (30d)
9

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/dubbo

All issues in apache/dubbo

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.