• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

apache / bookkeeper / 299
72%

Build:
DEFAULT BRANCH: master
Ran 14 Dec 2018 03:22PM UTC
Jobs 1
Files 481
Run time 31s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
299

push

jenkins

Sijie Guo
Issue #1884: (@W-5697664@) dir_*_usage stats are reported as 0 ...

for read-only bookies after a restart

### Motivation

Fixing the Issue #1884:

When a read-only bookie is restarted it keeps reporting `dir_*_usage`
stats as `0` until it becomes writable again.

This is caused by the `LedgerDirsMonitor.check` only updating
`diskUsages` if there are any writable dirs, or if the total usage
goes below the low water mark, otherwise relying on previously filled
values which are `0` after a bookie is restarted.

### Changes

* Change the `LedgerDirsMonitor.check` to update `diskUsages`
  even when there are no writable dirs.
* Add new `testLedgerDirsMonitorStartReadOnly` testing this scenario.
* Simplify previous tests checking read-only since `diskUsages`
  are now updated regardless if a bookie is in read-only mode.

jvrao reddycharan 




Reviewers: Sijie Guo <sijie@apache.org>, Charan Reddy Guttapalem <reddycharan18@gmail.com>

This closes #1885 from pasha-kuznetsov/issue-1884-dir-usage-ro-restart, closes #1884

25738 of 35713 relevant lines covered (72.07%)

0.72 hits per line

Jobs
ID Job ID Ran Files Coverage
1 299.1 14 Dec 2018 03:22PM UTC 0
72.07
Source Files on build 299
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #299
  • 1b2138fd on github
  • Prev Build on master (#298)
  • Next Build on master (#300)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc