[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15688230#comment-15688230
 ] 

ASF GitHub Bot commented on BOOKKEEPER-753:
-------------------------------------------

GitHub user sijie opened a pull request:

    https://github.com/apache/bookkeeper/pull/81

    BOOKKEEPER-753: Bookie should run garbage collection before startup when 
all directories became full

    - run gc before startup if all directories are full
    - move some initialization into #init() function
    - add some more stats

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sijie/bookkeeper sijie/gc_during_startup

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/bookkeeper/pull/81.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #81
    
----
commit cc21e3ea846b7e16f03721b5c9c0774132c3c78a
Author: Sijie Guo <sij...@twitter.com>
Date:   2014-02-01T03:10:31Z

    Bookie: run garbage collection during startup if all directories became 
full.
    - during bookie startup, run DiskChecker to check whether all directories 
are full. if they are all full, run garbage collection to collect those deleted 
ledgers to reclaim disk space. if no space could be reclaimed, fail the bookie 
startup (since there is no space for replaying journals)
    - optimize the gc logic: gc deleted ledgers first, and scan/gc entry 
loggers later.
    - move ledger index file only we tried to flush them, so it would not fail 
any read requests when bookie is in ReadOnly.
    
    RB_ID=278041

commit a09b847f08496a7783f7f18f772e872e13cb5006
Author: Sijie Guo <si...@apache.org>
Date:   2016-11-18T19:32:15Z

    Fix conflicts

----


> Bookie should run garbage collection before startup when all directories 
> became full
> ------------------------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-753
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-753
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>            Reporter: Sijie Guo
>            Assignee: Sijie Guo
>             Fix For: 4.5.0
>
>
> otherwise, a bookie that ran-out-of disk would never be started up again.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to