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

Plamen Jeliazkov edited comment on HDFS-14067 at 11/14/18 7:32 PM:
-------------------------------------------------------------------

Seems we may need to re-purpose this JIRA.

I am unable to make use of `-forcemanual` properly. The `-transitionToObserver` 
command fails to make use of it and if I try to I get "Incorrect number of 
arguments". Likely this is because of lines 477-479 of HAAdmin (without .000 
patch) where `-transitionToObserver` is not listed as a command that accepts 
`-forcemanual`.

FWIW, the .000 patch didn't address it either.

{code:java}
    // Mutative commands take FORCEMANUAL option
    if ("-transitionToActive".equals(cmd) ||
        "-transitionToStandby".equals(cmd) ||
        "-failover".equals(cmd)) {
      opts.addOption(FORCEMANUAL, false,
          "force manual control even if auto-failover is enabled");
    }
{code}


was (Author: zero45):
Seems we may need to re-purpose this JIRA.

I am unable to make use of `-forcemanual` properly. The `-transitionToObserver` 
command fails to make use of it and if I try to I get "Incorrect number of 
arguments". Likely this is because of lines 477-479 of HAAdmin (without .000 
patch) where `-transitionToObserver` is not listed as a command that accepts 
`-forcemanual`.

{code:java}
    // Mutative commands take FORCEMANUAL option
    if ("-transitionToActive".equals(cmd) ||
        "-transitionToStandby".equals(cmd) ||
        "-failover".equals(cmd)) {
      opts.addOption(FORCEMANUAL, false,
          "force manual control even if auto-failover is enabled");
    }
{code}

> Allow manual failover between standby and observer
> --------------------------------------------------
>
>                 Key: HDFS-14067
>                 URL: https://issues.apache.org/jira/browse/HDFS-14067
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Chao Sun
>            Assignee: Chao Sun
>            Priority: Major
>         Attachments: HDFS-14067-HDFS-12943.000.patch
>
>
> Currently if automatic failover is enabled in a HA environment, transition 
> from standby to observer would be blocked:
> {code}
> [hdfs@*** hadoop-3.3.0-SNAPSHOT]$ bin/hdfs haadmin -transitionToObserver ha2
> Automatic failover is enabled for NameNode at ****
> Refusing to manually manage HA state, since it may cause
> a split-brain scenario or other incorrect state.
> If you are very sure you know what you are doing, please
> specify the --forcemanual flag.
> {code}
> We should allow manual transition between standby and observer in this case.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to