[ 
https://issues.apache.org/jira/browse/IOTDB-1590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17410184#comment-17410184
 ] 

Haonan Hou commented on IOTDB-1590:
-----------------------------------

The expected result should be 2000.

Actually, if you execute count timeseries on each node, the result would be 
same and be the total number of timeseries of all nodes. Therefore, count 
devices should return the total number as well.

> Support count devices in cluster
> --------------------------------
>
>                 Key: IOTDB-1590
>                 URL: https://issues.apache.org/jira/browse/IOTDB-1590
>             Project: Apache IoTDB
>          Issue Type: New Feature
>          Components: Core/Cluster
>    Affects Versions: 0.12.2
>            Reporter: 刘珍
>            Priority: Major
>              Labels: easy-fix
>         Attachments: config.properties, image-2021-08-26-11-13-04-210.png
>
>
> iotdb info :
>     release 0.12.2 RC1 
> conf/iotdb-cluster.properties :
>     seed_nodes=192.168.130.5:9005,192.168.130.10:9010,192.168.130.13:9013
>     default_replica_num=1
> benchmark create 2000 devices .
> cli execute "count devices" on 3 nodes ,the result is inconsistent :
> [iotdb@fit05 release_1202]$ ./sbin/start-cli.sh -h 192.168.130.5 -p 6688 -e 
> "count devices"
> +-------+
> |devices|
> +-------+
> |    640|
> +-------+
> Total line number = 1
> It costs 0.065s
> [iotdb@fit05 release_1202]$ ./sbin/start-cli.sh -h 192.168.130.10 -p 6688 -e 
> "count devices"
> +-------+
> |devices|
> +-------+
> |    720|
> +-------+
> Total line number = 1
> It costs 0.079s
> [iotdb@fit05 release_1202]$ ./sbin/start-cli.sh -h 192.168.130.13 -p 6688 -e 
> "count devices"
> +-------+
> |devices|
> +-------+
> |    640|
> +-------+
>  !image-2021-08-26-11-13-04-210.png! 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to