lamber-ken opened a new pull request #2348:
URL: https://github.com/apache/bookkeeper/pull/2348


   ### 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)
   ```
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to