AntonShuvaev / elasticsearch4idea

Elasticsearch Plugin for JetBrains IDEs
https://plugins.jetbrains.com/plugin/14512-elasticsearch
58 stars 8 forks source link

Total size is incorrect in Elasticsearch Inspector #131

Closed evgenyvolferts closed 8 months ago

evgenyvolferts commented 9 months ago

Describe the bug Elasticsearch Inspector shows size equal to 1Tb for instances using more than 1Tb

Steps to reproduce Connect to Elasticsearch instance greater than 1Tb, click on it in instances tree, open Elasticsearch Inspector

Expected behavior Show real instance size

root@server ~ $ curl 'http://127.0.0.1:9200/_cat/allocation?v'
shards disk.indices disk.used disk.avail disk.total disk.percent host      ip        node
   375        1.8tb     2.3tb    250.9gb      2.5tb           90 127.0.0.1 127.0.0.1 server

root@server ~ $ curl -s 'http://127.0.0.1:9200/_cat/indices?bytes=m' | awk '{s+=$9} END {print s}'
1901010

2023-10-11_15-34-43

Environment information:

AntonShuvaev commented 8 months ago

Thanks for reporting the issue. I'll fix this in the next version.