You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "liujianhui (JIRA)" <ji...@apache.org> on 2016/11/23 03:46:58 UTC

[jira] [Created] (SPARK-18554) leader master lost the leadership, when the slave become master, the perivious app's state display as waitting

liujianhui created SPARK-18554:
----------------------------------

             Summary: leader master lost the leadership, when the slave become master, the perivious app's state display as waitting
                 Key: SPARK-18554
                 URL: https://issues.apache.org/jira/browse/SPARK-18554
             Project: Spark
          Issue Type: Bug
          Components: Deploy, Web UI
    Affects Versions: 1.6.1
         Environment: java1.8
            Reporter: liujianhui
            Priority: Minor


when the leader of master lost the leadship and the slave become master, the state of app in the webui will display waiting; this code as follow
 case MasterChangeAcknowledged(appId) => {
      idToApp.get(appId) match {
        case Some(app) =>
          logInfo("Application has been re-registered: " + appId)
          app.state = ApplicationState.WAITING
        case None =>
          logWarning("Master change ack from unknown app: " + appId)
      }

      if (canCompleteRecovery) { completeRecovery() }

the state of app should be RUNNING instead of waiting



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org