You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2022/07/08 15:58:00 UTC

[jira] [Resolved] (RATIS-1609) RaftStorageImpl should not lock the directory in the constructor.

     [ https://issues.apache.org/jira/browse/RATIS-1609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz-wo Sze resolved RATIS-1609.
-------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

The pull request is now merged.

> RaftStorageImpl should not lock the directory in the constructor.
> -----------------------------------------------------------------
>
>                 Key: RATIS-1609
>                 URL: https://issues.apache.org/jira/browse/RATIS-1609
>             Project: Ratis
>          Issue Type: Bug
>          Components: server
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>             Fix For: 3.0.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> As [~sammichen] pointed out in https://github.com/apache/ratis/pull/561 , RaftStorageImpl acquires a file lock in the constructor.  This breaks the lifecycle state of RaftServerImpl since RaftServerImpl holds resources (the file lock) in the NEW state.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)