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

Akhil PB edited comment on YARN-7957 at 9/21/18 10:29 AM:
----------------------------------------------------------

Below is the updated service states from the latest trunk code.
{code:java}
public enum ServiceState {
  ACCEPTED, STARTED, STABLE, STOPPED, FAILED, FLEX, UPGRADING,
  UPGRADING_AUTO_FINALIZE, EXPRESS_UPGRADING, SUCCEEDED;
}
{code}
So for a deployed service,
1. Show both Stop and Delete button when states are
{code:java}
ACCEPTED, STARTED, STABLE, FLEX, UPGRADING, UPGRADING_AUTO_FINALIZE, 
EXPRESS_UPGRADING
{code}
2. Show Delete button only when state is
{code:java}
STOPPED, SUCCEEDED
{code}
3. Do not show any buttons when state is 
{code:java}
FAILED
{code}
OR if the response code is 404 error.

cc [~sunilg] [~gsaha] Please share your thoughts.


was (Author: akhilpb):
Hi [~sunilg]

Below is the updated service states from the latest trunk code.
{code:java}
public enum ServiceState {
  ACCEPTED, STARTED, STABLE, STOPPED, FAILED, FLEX, UPGRADING,
  UPGRADING_AUTO_FINALIZE, EXPRESS_UPGRADING, SUCCEEDED;
}
{code}
So for a deployed service,
1. Show both Stop and Delete button when states are
{code:java}
ACCEPTED, STARTED, STABLE, FLEX, UPGRADING, UPGRADING_AUTO_FINALIZE, 
EXPRESS_UPGRADING
{code}
2. Show Delete button only when state is
{code:java}
STOPPED, SUCCEEDED
{code}
3. Do not show any buttons when state is 
{code:java}
FAILED
{code}
OR if the response code is 404 error.

Please share your thoughts.

> [UI2] Yarn service delete option disappears after stopping application
> ----------------------------------------------------------------------
>
>                 Key: YARN-7957
>                 URL: https://issues.apache.org/jira/browse/YARN-7957
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn-ui-v2
>    Affects Versions: 3.1.0
>            Reporter: Yesha Vora
>            Assignee: Akhil PB
>            Priority: Critical
>         Attachments: YARN-7957.001.patch
>
>
> Steps:
> 1) Launch yarn service
> 2) Go to service page and click on Setting button->"Stop Service". The 
> application will be stopped.
> 3) Refresh page
> Here, setting button disappears. Thus, user can not delete service from UI 
> after stopping application
> Expected behavior:
> Setting button should be present on UI page after application is stopped. If 
> application is stopped, setting button should only have "Delete Service" 
> action available.



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

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

Reply via email to