Rohith commented on YARN-3151:

{{finalTrackingUrl}} is stored to statestore only when there is UNREGISTERED 
event from AM. Rest all the events {{finalTrackingUrl}} stored as null. But 
during recovery,finalTrackingUrl is assigned to originalTrackingUrl which is 
used for creating application report that makes tracking-url to null.Basically 
finalTrackingUrl should be updated for other events also by setting 

> On Failover tracking url wrong in application cli for KILLED application
> ------------------------------------------------------------------------
>                 Key: YARN-3151
>                 URL: https://issues.apache.org/jira/browse/YARN-3151
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: client, resourcemanager
>    Affects Versions: 2.6.0
>         Environment: 2 RM HA 
>            Reporter: Bibin A Chundatt
>            Assignee: Rohith
>            Priority: Minor
> Run an application and kill the same after starting
> Check {color:red} ./yarn application -list -appStates KILLED {color}
> (empty line)
> {quote}
>                 Application-Id Tracking-URL
> application_1423219262738_0001  
> http://<IP>:PORT>/cluster/app/application_1423219262738_0001
> {quote}
> Shutdown the active RM1
> Check the same command {color:red} ./yarn application -list -appStates KILLED 
> {color} after RM2 is active
> {quote}
>                 Application-Id Tracking-URL
> application_1423219262738_0001  null
> {quote}
> Tracking url for application is shown as null 
> Expected : Same url before failover should be shown
> ApplicationReport .getOriginalTrackingUrl() is null after failover
> org.apache.hadoop.yarn.client.cli.ApplicationCLI
> listApplications(Set<String> appTypes,
>       EnumSet<YarnApplicationState> appStates)

This message was sent by Atlassian JIRA

Reply via email to