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

Rakesh R commented on BOOKKEEPER-278:
-------------------------------------

I'm thinking to provide new configuration item 'enableAutoRecovery=true' in the 
bk_server.conf file. 
By default this feature will be disabled.

Also this will be added in the ServerConfiguration.java as follows:

{code}
    /**
     * Is Auto recovery enabled
     * 
     * @return is statistics enabled
     */
    public boolean isAutoRecoveryEnabled() {
        return getBoolean(ENABLE_AUTORECOVERY, false);
    }

    /**
     * Turn on/off Auto recovery
     * 
     * @param enabled
     *            Whether auto recovery enabled or not.
     * @return server configuration
     */
    public ServerConfiguration setAutoRecoveryEnabled(boolean enabled) {
        setProperty(ENABLE_AUTORECOVERY, Boolean.toString(enabled));
        return this;
    }
{code}
                
> Ability to disable auto recovery temporarily
> --------------------------------------------
>
>                 Key: BOOKKEEPER-278
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-278
>             Project: Bookkeeper
>          Issue Type: Sub-task
>            Reporter: Ivan Kelly
>            Assignee: Rakesh R
>             Fix For: 4.2.0
>
>
> Administrators will need to do rolling upgrades of bookies. If auto recovery 
> is enabled during a rolling upgrade, there will be a lot of thrashing of 
> ledgers as they recovery gets kicked off. Therefore we need a way to 
> temporarily disable it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to