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

Incorrect subscription tree displaying #43

Closed
ralight opened this issue Mar 15, 2016 · 0 comments
Closed

Incorrect subscription tree displaying #43

ralight opened this issue Mar 15, 2016 · 0 comments

Comments

@ralight
Copy link
Contributor

ralight commented Mar 15, 2016

migrated from Bugzilla #470246
status RESOLVED severity normal in component Mosquitto for 1.5
Reported in version 1.4 on platform All
Assigned to: Roger Light

On 2015-06-16 05:13:37 -0400, Yun Wu wrote:

subscription tree displayed:

[yun@OptiPlex mosquitto-1.4.2]$ ./src/mosquitto
1434444278: mosquitto version 1.4.2 (build date 2015-06-16 16:44:26+0800) starting
1434444278: Using default config.
1434444278: Opening ipv4 listen socket on port 1883.
1434444278: Opening ipv6 listen socket on port 1883.

$SYS
$SYS <-------------------------------- This is incorrect
broker
version (r)
timestamp (r)
uptime (r)
clients
total (r)
inactive (r)
disconnected (r)
active (r)
connected (r)
expired (r)
messages
stored (r)
received (r)
sent (r)
subscriptions
count (r)
retained messages
count (r)
publish
messages
dropped (r)
received (r)
sent (r)
bytes
received (r)
sent (r)
bytes
received (r)
sent (r)

Topics received by mosquitto_sub:

[yun@OptiPlex mosquitto-1.4.2]$ client/mosquitto_sub -t '$SYS/#' -v
$SYS/broker/version mosquitto version 1.4.2
$SYS/broker/timestamp 2015-06-16 16:44:26+0800
$SYS/broker/uptime 88 seconds
$SYS/broker/clients/total 0
$SYS/broker/clients/inactive 0
$SYS/broker/clients/disconnected 0
$SYS/broker/clients/active 0
$SYS/broker/clients/connected 0
$SYS/broker/clients/expired 0
$SYS/broker/messages/stored 42
$SYS/broker/messages/received 2
$SYS/broker/messages/sent 78
$SYS/broker/subscriptions/count 0
$SYS/broker/retained messages/count 42
$SYS/broker/publish/messages/dropped 0
$SYS/broker/publish/messages/received 0
$SYS/broker/publish/messages/sent 76
$SYS/broker/publish/bytes/received 0
$SYS/broker/publish/bytes/sent 296
$SYS/broker/bytes/received 50
$SYS/broker/bytes/sent 2959

On 2015-06-16 05:15:35 -0400, Yun Wu wrote:

This bug does not exist in mosquitto-1.2.
In mosquitto-1.2:

$SYS
broker
version (r)
timestamp (r)
uptime (r)
clients
total (r)
inactive (r)
active (r)
maximum (r)
expired (r)
messages
stored (r)
received (r)
sent (r)
subscriptions
count (r)
retained messages
count (r)
publish
messages
dropped (r)
received (r)
sent (r)
bytes
received (r)
sent (r)
bytes
received (r)
sent (r)
load
messages
received
1min (r)
5min (r)
15min (r)
sent
1min (r)
5min (r)
15min (r)
bytes
received
1min (r)
5min (r)
15min (r)
sent
1min (r)
5min (r)
15min (r)
sockets
1min (r)
5min (r)
15min (r)
connections
1min (r)
5min (r)
15min (r)
publish
received
1min (r)
5min (r)
15min (r)
sent
1min (r)
5min (r)
15min (r)

On 2015-06-21 16:23:01 -0400, Roger Light wrote:

The documentation around this feature says that it is for testing only and could disappear at any point. I don't consider this to be a bug, it's change in the internal behaviour of the broker.

Is there an important use case you need this information for, that you can't get through other means?

On 2015-06-22 22:28:08 -0400, Yun Wu wrote:

I am afraid I can not accept this explanation :-)
Bug is behavior not match expectations, no matter whether it is a official feature or not :-)

On 2015-06-29 16:26:10 -0400, Roger Light wrote:

This has now been fixed here: http://git.eclipse.org/c/mosquitto/org.eclipse.mosquitto.git/commit/?h=develop&id=SHA: a4dad02

@ralight ralight closed this as completed Mar 15, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant