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

Nandakumar commented on HDDS-11844:
-----------------------------------

There are currently two Pipeline Safemode Rules
*OneReplicaPipelineSafeModeRule*
This rule waits for configured percentage of Pipelines to be reported by at 
least one Datanode.
{code:java}
  public static final String HDDS_SCM_SAFEMODE_ONE_NODE_REPORTED_PIPELINE_PCT =
      "hdds.scm.safemode.atleast.one.node.reported.pipeline.pct";
  public static final double
      HDDS_SCM_SAFEMODE_ONE_NODE_REPORTED_PIPELINE_PCT_DEFAULT = 0.90;
{code}
*HealthyPipelineSafeModeRule*
This rules waits for configured percentage of Pipelines to be reported by all 
the (three) Datanodes
{code:java}
  public static final String HDDS_SCM_SAFEMODE_HEALTHY_PIPELINE_THRESHOLD_PCT =
      "hdds.scm.safemode.healthy.pipeline.pct";
  public static final double
      HDDS_SCM_SAFEMODE_HEALTHY_PIPELINE_THRESHOLD_PCT_DEFAULT = 0.10;
{code}
While going over the code, HealthyPipelineSafeModeRule doesn't look like it 
checks for all the Datanodes of a Pipeline to be reported.
Created HDDS-11904 to fix the same.

> Do not wait for all the Pipelines to be reported to exit SafeMode
> -----------------------------------------------------------------
>
>                 Key: HDDS-11844
>                 URL: https://issues.apache.org/jira/browse/HDDS-11844
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Nandakumar
>            Priority: Major
>
> We don't have to wait for all the Pipelines to be reported to exit 
> {{SafeMode}}. Having at least one open {{Pipeline}} to serve writes is enough 
> to get out of {{SafeMode}}.
> We can reuse the {{Pipelines}} reported by {{Datanodes}}, but we don't have 
> to wait for all the {{Pipelines}} to be reported to get SCM out of 
> {{SafeMode}}.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to