You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by bo...@apache.org on 2018/11/02 20:45:43 UTC
[1/2] storm git commit: Fix UIHelpers timeout while starting profiler
Repository: storm
Updated Branches:
refs/heads/master fb6308992 -> 02662ea66
Fix UIHelpers timeout while starting profiler
Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/6b42587d
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/6b42587d
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/6b42587d
Branch: refs/heads/master
Commit: 6b42587dfb1f99c8dfb6066a2bbc83e29552cff8
Parents: 730c1a3
Author: Kishor Patil <kp...@oath.com>
Authored: Wed Oct 24 17:50:59 2018 -0400
Committer: Kishor Patil <kp...@oath.com>
Committed: Wed Oct 24 17:50:59 2018 -0400
----------------------------------------------------------------------
.../org/apache/storm/daemon/ui/UIHelpers.java | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/storm/blob/6b42587d/storm-webapp/src/main/java/org/apache/storm/daemon/ui/UIHelpers.java
----------------------------------------------------------------------
diff --git a/storm-webapp/src/main/java/org/apache/storm/daemon/ui/UIHelpers.java b/storm-webapp/src/main/java/org/apache/storm/daemon/ui/UIHelpers.java
index ff121ae..5935e72 100644
--- a/storm-webapp/src/main/java/org/apache/storm/daemon/ui/UIHelpers.java
+++ b/storm-webapp/src/main/java/org/apache/storm/daemon/ui/UIHelpers.java
@@ -2164,7 +2164,7 @@ public class UIHelpers {
}
/**
- * getTopologyProfilingAction.
+ * setTopologyProfilingAction.
* @param client client
* @param id id
* @param hostPort hostPort
@@ -2173,7 +2173,7 @@ public class UIHelpers {
* @param profileAction profileAction
* @throws TException TException
*/
- public static void getTopologyProfilingAction(
+ public static void setTopologyProfilingAction(
Nimbus.Iface client, String id,
String hostPort, Long timestamp, Map<String,
Object> config, ProfileAction profileAction) throws TException {
@@ -2200,9 +2200,9 @@ public class UIHelpers {
public static Map<String, Object> getTopologyProfilingStart(Nimbus.Iface client, String id,
String hostPort, String timeout,
Map<String, Object> config) throws TException {
- getTopologyProfilingAction(
- client, id , hostPort, System.currentTimeMillis() + Long.valueOf(timeout),
- config, ProfileAction.JPROFILE_START);
+ setTopologyProfilingAction(
+ client, id , hostPort, System.currentTimeMillis() + (Long.valueOf(timeout) * 60_000),
+ config, ProfileAction.JPROFILE_STOP);
Map<String, Object> result = new HashMap();
String host = hostPort.split(":")[0];
String port = hostPort.split(":")[1];
@@ -2225,7 +2225,7 @@ public class UIHelpers {
public static Map<String, Object> getTopologyProfilingStop(Nimbus.Iface client, String id,
String hostPort,
Map<String, Object> config) throws TException {
- getTopologyProfilingAction(client, id , hostPort, 0L, config, ProfileAction.JPROFILE_STOP);
+ setTopologyProfilingAction(client, id , hostPort, 0L, config, ProfileAction.JPROFILE_STOP);
Map<String, Object> result = new HashMap();
result.put("status", "ok");
result.put("id", hostPort);
@@ -2254,7 +2254,7 @@ public class UIHelpers {
*/
public static Map<String, Object> getTopologyProfilingDump(Nimbus.Iface client, String id, String hostPort,
Map<String,Object> config) throws TException {
- getTopologyProfilingAction(
+ setTopologyProfilingAction(
client, id , hostPort, System.currentTimeMillis(),
config, ProfileAction.JPROFILE_DUMP
);
@@ -2267,7 +2267,7 @@ public class UIHelpers {
public static Map<String, Object> getTopologyProfilingDumpJstack(Nimbus.Iface client, String id,
String hostPort, Map<String,
Object> config) throws TException {
- getTopologyProfilingAction(
+ setTopologyProfilingAction(
client, id , hostPort, System.currentTimeMillis(), config, ProfileAction.JSTACK_DUMP
);
Map<String, Object> result = new HashMap();
@@ -2288,7 +2288,7 @@ public class UIHelpers {
public static Map<String, Object> getTopologyProfilingRestartWorker(Nimbus.Iface client,
String id, String hostPort,
Map<String,Object> config) throws TException {
- getTopologyProfilingAction(
+ setTopologyProfilingAction(
client, id , hostPort, System.currentTimeMillis(), config, ProfileAction.JVM_RESTART
);
Map<String, Object> result = new HashMap();
@@ -2308,7 +2308,7 @@ public class UIHelpers {
*/
public static Map<String, Object> getTopologyProfilingDumpHeap(Nimbus.Iface client, String id, String hostPort,
Map<String,Object> config) throws TException {
- getTopologyProfilingAction(client, id , hostPort, System.currentTimeMillis(), config, ProfileAction.JMAP_DUMP);
+ setTopologyProfilingAction(client, id , hostPort, System.currentTimeMillis(), config, ProfileAction.JMAP_DUMP);
Map<String, Object> result = new HashMap();
result.put("status", "ok");
result.put("id", hostPort);
[2/2] storm git commit: Merge branch 'storm3275' of
https://github.com/kishorvpatil/incubator-storm into STORM-3275
Posted by bo...@apache.org.
Merge branch 'storm3275' of https://github.com/kishorvpatil/incubator-storm into STORM-3275
STORM-3275: Fix UIHelpers timeout while starting profiler
This closes #2895
Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/02662ea6
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/02662ea6
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/02662ea6
Branch: refs/heads/master
Commit: 02662ea6641a6763b8e285ad292dbb789be6fc61
Parents: fb63089 6b42587
Author: Robert Evans <ev...@yahoo-inc.com>
Authored: Fri Nov 2 14:11:24 2018 -0500
Committer: Robert Evans <ev...@yahoo-inc.com>
Committed: Fri Nov 2 14:11:24 2018 -0500
----------------------------------------------------------------------
.../org/apache/storm/daemon/ui/UIHelpers.java | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------