commit | 62a5074044ce9d5571b133f4a0a29d77dc4f5163 | [log] [tgz] |
---|---|---|
author | lamber-ken <lamberken@apache.org> | Mon Jun 08 20:24:32 2020 +0800 |
committer | GitHub <noreply@github.com> | Mon Jun 08 14:24:32 2020 +0200 |
tree | 8dbaac3a6030a002c3f40a2953a90716635e35c1 | |
parent | b1c7232b46ab33b20a9a44ef19a815be172e6c99 [diff] |
[BUG] Fix redundant statistics ### Motivation Fix redundant statistics, run 5 bookies `bin/bookkeeper localbookie 10`, then show bookieinfo ``` ./bin/bookkeeper shell bookieinfo ``` **Wrong result** ``` Free disk space info: 10.101.52.18(10.101.52.18):5004: Free: 34930151424(34.93GB) Total: 255850758144(255.85GB) 10.101.52.18(10.101.52.18):5003: Free: 34930151424(34.93GB) Total: 255850758144(255.85GB) 10.101.52.18(10.101.52.18):5002: Free: 34930151424(34.93GB) Total: 255850758144(255.85GB) 10.101.52.18(10.101.52.18):5000: Free: 34930151424(34.93GB) Total: 255850758144(255.85GB) 10.101.52.18(10.101.52.18):5005: Free: 34930151424(34.93GB) Total: 255850758144(255.85GB) Total free disk space in the cluster: 174650757120(174.65GB) Total disk capacity in the cluster: 1279253790720(1.279TB) ``` **Right result** ``` Free disk space info: 10.101.52.18(10.101.52.18):5004: Free: 33172185088(33.172GB) Total: 255850758144(255.85GB) 10.101.52.18(10.101.52.18):5003: Free: 33172185088(33.172GB) Total: 255850758144(255.85GB) 10.101.52.18(10.101.52.18):5002: Free: 33172185088(33.172GB) Total: 255850758144(255.85GB) 10.101.52.18(10.101.52.18):5006: Free: 33172185088(33.172GB) Total: 255850758144(255.85GB) 10.101.52.18(10.101.52.18):5005: Free: 33172185088(33.172GB) Total: 255850758144(255.85GB) Total free disk space in the cluster: 33172185088(33.172GB) Total disk capacity in the cluster: 255850758144(255.85GB) ``` Reviewers: Jia Zhai <zhaijia@apache.org>, Sijie Guo <None>, Enrico Olivelli <eolivelli@gmail.com> This closes #2348 from lamber-ken/bk-info-command
Apache BookKeeper is a scalable, fault tolerant and low latency storage service optimized for append-only workloads.
It is suitable for being used in following scenarios:
You can also read Turning Ledgers into Logs to learn how to turn ledgers into continuous log streams. If you are looking for a high level log stream API, you can checkout DistributedLog.
For filing bugs, suggesting improvements, or requesting new features, help us out by opening a Github issue or opening an Apache jira.
Subscribe or mail the user@bookkeeper.apache.org list - Ask questions, find answers, and also help other users.
Subscribe or mail the dev@bookkeeper.apache.org list - Join development discussions, propose new ideas and connect with contributors.
Join us on Slack - This is the most immediate way to connect with Apache BookKeeper committers and contributors.
We feel that a welcoming open community is important and welcome contributions.
See Developer Setup to get your local environment setup.
Take a look at our open issues: JIRA Issues Github Issues.
Review our coding style and follow our pull requests to learn about our conventions.
Make your changes according to our contribution guide.