[
https://issues.apache.org/jira/browse/EAGLE-852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15811136#comment-15811136
]
ASF GitHub Bot commented on EAGLE-852:
--------------------------------------
GitHub user chitin opened a pull request:
https://github.com/apache/eagle/pull/767
EAGLE-852 Application start button should be disabled when it's running,
and the same for stop button.
EAGLE-852 Application start button should be disabled when it's running,
and the same for stop button.
- Add disabled judgment logic.
executable | status | start button | stop button
---|--- | --- | ---
Y | INITIALIZED | Y | N
Y | STARTING | N | N
Y | RUNNING | N | Y
Y | STOPPING | N | N
Y | STOPPED | N | N
N | INITIALIZED | N | N
https://issues.apache.org/jira/browse/EAGLE-852
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/chitin/incubator-eagle EAGLE-852-startbutton
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/eagle/pull/767.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #767
----
commit 91b60c52038d62565d75049d7608248fe7ad5afb
Author: chitin <[email protected]>
Date: 2017-01-09T05:10:27Z
[MINOR] Fix unit test problem
- Add dependency for HADOOP_METRIC_MONITOR, should fix UT.
commit 37c0ea9c664a5e61ed6cac3cd43cb509a20206f7
Author: chitin <[email protected]>
Date: 2017-01-09T09:00:54Z
EAGLE-852 Application start button should be disabled when it's running,
and the same for stop button.
- Add disabled judgment logic.
https://issues.apache.org/jira/browse/EAGLE-852
----
> Application start button should be disabled when it's running, and the same
> for stop button
> --------------------------------------------------------------------------------------------
>
> Key: EAGLE-852
> URL: https://issues.apache.org/jira/browse/EAGLE-852
> Project: Eagle
> Issue Type: Bug
> Reporter: Lingang Deng
> Assignee: Lingang Deng
> Priority: Minor
>
> Application start button can click when it's running, it's improper, and
> throw exception as follows
> {code}
> ERROR [2017-01-09 08:27:15,623]
> org.apache.eagle.app.service.impl.ApplicationManagementServiceImpl: App:
> HADOOP_METRIC_MONITOR_XHJ status is RUNNING start operation is not allowed
> ! org.apache.eagle.metadata.exceptions.ApplicationWrongStatusException: App:
> HADOOP_METRIC_MONITOR_TEST_SITE status is RUNNING start operation is not
> allowed
> ! at
> org.apache.eagle.app.service.impl.ApplicationManagementServiceImpl.start(ApplicationManagementServiceImpl.java:196)
> ~[classes/:na]
> ! at
> org.apache.eagle.app.resource.ApplicationResource.lambda$startApplication$8(ApplicationResource.java:176)
> [classes/:na]
> ! at
> org.apache.eagle.metadata.resource.RESTResponse$RestResponseBuilder.lambda$async$1(RESTResponse.java:197)
> ~[classes/:na]
> ! at
> java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626)
> ~[na:1.8.0_102]
> ! at
> java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1618)
> ~[na:1.8.0_102]
> ! at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
> ~[na:1.8.0_102]
> ! at
> java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
> ~[na:1.8.0_102]
> ! at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
> ~[na:1.8.0_102]
> ! at
> java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
> ~[na:1.8.0_102]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)