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

Tsz-wo Sze commented on RATIS-1668:
-----------------------------------

We propose to have the following failure handling:
- When there are more than one existing directories, throw an exception.
- When there is an existing directory, if it fails, throw an exception but not 
try to initialize a new directory.
- When there is no existing directory, try to initialize a new directory from 
the list specifiedĀ in the configuration properties until a directory succeeded 
or all directories failed.


> When there is an existing dir, if it fails, server should not initialize a 
> new dir
> ----------------------------------------------------------------------------------
>
>                 Key: RATIS-1668
>                 URL: https://issues.apache.org/jira/browse/RATIS-1668
>             Project: Ratis
>          Issue Type: Improvement
>          Components: server
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>
> [~NeilJoshi] reported this in HDDS-7103.
> Currently, when there is an existing directory dirA, if dirA fails for some 
> reason, RaftServer will try to initialize another directory dirB from the 
> list specified in the configuration properties. Suppose dirB can be 
> initialized successfully. The server can start at that time. However, when 
> the server restarts, it may find dirA and dirB exist at the same time and 
> then throw an exception. It is because the server cannot decide which one to 
> use.



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

Reply via email to