You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2018/12/13 23:09:50 UTC

[GitHub] pasha-kuznetsov opened a new pull request #1885: Issue #1884: (@bug W-5697664@) dir_*_usage stats are reported as 0 ...

pasha-kuznetsov opened a new pull request #1885: Issue #1884: (@bug W-5697664@) dir_*_usage stats are reported as 0 ...
URL: https://github.com/apache/bookkeeper/pull/1885
 
 
   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 
   
   > ---
   > In order to uphold a high standard for quality for code contributions, Apache BookKeeper runs various precommit
   > checks for pull requests. A pull request can only be merged when it passes precommit checks. However running all
   > the precommit checks can take a long time, some trivial changes don't need to run all the precommit checks. You
   > can check following list to skip the tests that don't need to run for your pull request. Leave them unchecked if
   > you are not sure, committers will help you:
   >
   > - [ ] [skip bookkeeper-server bookie tests]: skip testing `org.apache.bookkeeper.bookie` in bookkeeper-server module.
   > - [ ] [skip bookkeeper-server client tests]: skip testing `org.apache.bookkeeper.client` in bookkeeper-server module.
   > - [ ] [skip bookkeeper-server replication tests]: skip testing `org.apache.bookkeeper.replication` in bookkeeper-server module.
   > - [ ] [skip bookkeeper-server tls tests]: skip testing `org.apache.bookkeeper.tls` in bookkeeper-server module.
   > - [ ] [skip bookkeeper-server remaining tests]: skip testing all other tests in bookkeeper-server module.
   > - [ ] [skip integration tests]: skip docker based integration tests. if you make java code changes, you shouldn't skip integration tests.
   > - [ ] [skip build java8]: skip build on java8. *ONLY* skip this when *ONLY* changing files under documentation under `site`.
   > - [ ] [skip build java9]: skip build on java9. *ONLY* skip this when *ONLY* changing files under documentation under `site`.
   > ---
   
   > ---
   > Be sure to do all of the following to help us incorporate your contribution
   > quickly and easily:
   >
   > If this PR is a BookKeeper Proposal (BP):
   >
   > - [ ] Make sure the PR title is formatted like:
   >     `<BP-#>: Description of bookkeeper proposal`
   >     `e.g. BP-1: 64 bits ledger is support`
   > - [ ] Attach the master issue link in the description of this PR.
   > - [ ] Attach the google doc link if the BP is written in Google Doc.
   >
   > Otherwise:
   > 
   > - [ ] Make sure the PR title is formatted like:
   >     `<Issue #>: Description of pull request`
   >     `e.g. Issue 123: Description ...`
   > - [ ] Make sure tests pass via `mvn clean apache-rat:check install spotbugs:check`.
   > - [ ] Replace `<Issue #>` in the title with the actual Issue number.
   > 
   > ---
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services