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

Ayush Saxena commented on HDFS-14961:
-------------------------------------

Can try something like this :

{code:java}
  @Override // HAServiceProtocol
  public synchronized void transitionToStandby(StateChangeRequestInfo req) 
      throws ServiceFailedException, AccessControlException, IOException {
    checkNNStartup();
    if (nn.getState() == NameNode.OBSERVER_STATE.toString()
        && req.getSource() == RequestSource.REQUEST_BY_ZKFC) {
      // Throw Some Exception....
    }
    nn.checkHaStateChange(req);
    nn.transitionToStandby();
  }
{code}


> TestDFSZKFailoverController fails consistently
> ----------------------------------------------
>
>                 Key: HDFS-14961
>                 URL: https://issues.apache.org/jira/browse/HDFS-14961
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Íñigo Goiri
>            Priority: Major
>
> TestDFSZKFailoverController has been consistently failing with a time out 
> waiting in testManualFailoverWithDFSHAAdmin(). In particular 
> {{waitForHAState(1, HAServiceState.OBSERVER);}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to