{"action":"created","comment":{"url":"https://api.github.com/repos/SnappyDataInc/snappydata/pulls/comments/202980286","pull_request_review_id":137777750,"id":202980286,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjk4MDI4Ng==","diff_hunk":"@@ -1715,6 +1715,52 @@ public void executeProcess(ProcessBuilder pb, File logFile) {\n     }\n   }\n \n+  protected  synchronized void recordSnappyProcessIDinNukeRun(String hostName, String pName){\n+    String cmd = \"ssh -n -x -o PasswordAuthentication=no -o StrictHostKeyChecking=no \" + hostName;\n+    Process pr = null;\n+    try {\n+      String dest = new File(\".\").getCanonicalPath() + File.separator + \"PIDs_\" + pName + \"_\" +\n+          hostName + \".log\";\n+      File logFile = new File(dest);\n+      if (!logFile.exists()) {\n+        cmd += \" jps | grep \" + pName + \" | awk '{print $1}'\";\n+        hd = TestConfig.getInstance().getMasterDescription()\n+            .getVmDescription().getHostDescription();\n+        ProcessBuilder pb = new ProcessBuilder(\"/bin/bash\", \"-c\", cmd);\n+        pb.redirectOutput(ProcessBuilder.Redirect.appendTo(logFile));\n+        pr = pb.start();\n+        pr.waitFor();\n+        FileInputStream fis = new FileInputStream(logFile);\n+        BufferedReader br = new BufferedReader(new InputStreamReader(fis));\n+        String str = null;\n+        while ((str = br.readLine()) != null) {\n+          int pid = Integer.parseInt(str);\n+          try {\n+            if (pids.contains(pid)) {\n+              Log.getLogWriter().info(\"Pid is already recorded with Master\" + pid);\n+            } else {\n+              pids.add(pid);\n+              RemoteTestModule.Master.recordPID(hd, pid);\n+              SnappyBB.getBB().getSharedMap().put(\"pid\" + \"_\" + pName + \"_\" + str, str);\n+              SnappyBB.getBB().getSharedMap().put(\"host\" + \"_\" + pid + \"_\" + hostName, hostName);\n+            }\n+          } catch (RemoteException e) {\n+            String s = \"Unable to access master to record PID: \" + pid;\n+            throw new HydraRuntimeException(s, e);\n+          }\n+          Log.getLogWriter().info(\"pid value successfully recorded with Master\");\n+        }\n+        br.close();\n+      }\n+    } catch (IOException e) {\n+      String s = \"Problem while starting the process : \" + pr;\n+      throw new TestException(s, e);\n+    } catch (InterruptedException e) {\n+      String s = \"Exception occurred while waiting for the process execution : \" + pr;\n+      throw new TestException(s, e);\n+    }\n+  }\n+\n   protected synchronized void recordSnappyProcessIDinNukeRun(String pName) {","path":"dtests/src/test/java/io/snappydata/hydra/cluster/SnappyTest.java","position":47,"original_position":50,"commit_id":"d4c1e8773d07d9fc2141e295e62ed7381e5d7e3d","original_commit_id":"341a5824c72a25475bb5ad2882cf6c9e3ebb285e","user":{"login":"sonalsagarwal","id":11516525,"node_id":"MDQ6VXNlcjExNTE2NTI1","avatar_url":"https://avatars3.githubusercontent.com/u/11516525?v=4","gravatar_id":"","url":"https://api.github.com/users/sonalsagarwal","html_url":"https://github.com/sonalsagarwal","followers_url":"https://api.github.com/users/sonalsagarwal/followers","following_url":"https://api.github.com/users/sonalsagarwal/following{/other_user}","gists_url":"https://api.github.com/users/sonalsagarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/sonalsagarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonalsagarwal/subscriptions","organizations_url":"https://api.github.com/users/sonalsagarwal/orgs","repos_url":"https://api.github.com/users/sonalsagarwal/repos","events_url":"https://api.github.com/users/sonalsagarwal/events{/privacy}","received_events_url":"https://api.github.com/users/sonalsagarwal/received_events","type":"User","site_admin":false},"body":"This is still being used by the previous methods, so will keep it.","created_at":"2018-07-17T11:05:35Z","updated_at":"2018-07-17T11:05:35Z","html_url":"https://github.com/SnappyDataInc/snappydata/pull/1085#discussion_r202980286","pull_request_url":"https://api.github.com/repos/SnappyDataInc/snappydata/pulls/1085","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/SnappyDataInc/snappydata/pulls/comments/202980286"},"html":{"href":"https://github.com/SnappyDataInc/snappydata/pull/1085#discussion_r202980286"},"pull_request":{"href":"https://api.github.com/repos/SnappyDataInc/snappydata/pulls/1085"}},"in_reply_to_id":202946478},"pull_request":{"url":"https://api.github.com/repos/SnappyDataInc/snappydata/pulls/1085","id":201575994,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNTc1OTk0","html_url":"https://github.com/SnappyDataInc/snappydata/pull/1085","diff_url":"https://github.com/SnappyDataInc/snappydata/pull/1085.diff","patch_url":"https://github.com/SnappyDataInc/snappydata/pull/1085.patch","issue_url":"https://api.github.com/repos/SnappyDataInc/snappydata/issues/1085","number":1085,"state":"open","locked":false,"title":"Changes to have stack dump for members in snappy and spark cluster.","user":{"login":"sonalsagarwal","id":11516525,"node_id":"MDQ6VXNlcjExNTE2NTI1","avatar_url":"https://avatars3.githubusercontent.com/u/11516525?v=4","gravatar_id":"","url":"https://api.github.com/users/sonalsagarwal","html_url":"https://github.com/sonalsagarwal","followers_url":"https://api.github.com/users/sonalsagarwal/followers","following_url":"https://api.github.com/users/sonalsagarwal/following{/other_user}","gists_url":"https://api.github.com/users/sonalsagarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/sonalsagarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonalsagarwal/subscriptions","organizations_url":"https://api.github.com/users/sonalsagarwal/orgs","repos_url":"https://api.github.com/users/sonalsagarwal/repos","events_url":"https://api.github.com/users/sonalsagarwal/events{/privacy}","received_events_url":"https://api.github.com/users/sonalsagarwal/received_events","type":"User","site_admin":false},"body":"## Changes proposed in this pull request\r\nThe changes will allow hydra to take stack dumps at the end of each, before stopping spark/snappy cluster. \r\nFor now, the stack dumps will be taken in all the tests, whether passed or failed.\r\n\r\n## Patch testing\r\nRun targeted bts on the branch.\r\n\r\n## ReleaseNotes.txt changes\r\nNA\r\n\r\n## Other PRs \r\nNA\r\n","created_at":"2018-07-16T09:03:01Z","updated_at":"2018-07-17T11:05:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a67bd7a9e9fc5a870a8affdde73d29eca177458","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SnappyDataInc/snappydata/pulls/1085/commits","review_comments_url":"https://api.github.com/repos/SnappyDataInc/snappydata/pulls/1085/comments","review_comment_url":"https://api.github.com/repos/SnappyDataInc/snappydata/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SnappyDataInc/snappydata/issues/1085/comments","statuses_url":"https://api.github.com/repos/SnappyDataInc/snappydata/statuses/d4c1e8773d07d9fc2141e295e62ed7381e5d7e3d","head":{"label":"SnappyDataInc:SNAP-1713","ref":"SNAP-1713","sha":"d4c1e8773d07d9fc2141e295e62ed7381e5d7e3d","user":{"login":"SnappyDataInc","id":11342682,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMzQyNjgy","avatar_url":"https://avatars2.githubusercontent.com/u/11342682?v=4","gravatar_id":"","url":"https://api.github.com/users/SnappyDataInc","html_url":"https://github.com/SnappyDataInc","followers_url":"https://api.github.com/users/SnappyDataInc/followers","following_url":"https://api.github.com/users/SnappyDataInc/following{/other_user}","gists_url":"https://api.github.com/users/SnappyDataInc/gists{/gist_id}","starred_url":"https://api.github.com/users/SnappyDataInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SnappyDataInc/subscriptions","organizations_url":"https://api.github.com/users/SnappyDataInc/orgs","repos_url":"https://api.github.com/users/SnappyDataInc/repos","events_url":"https://api.github.com/users/SnappyDataInc/events{/privacy}","received_events_url":"https://api.github.com/users/SnappyDataInc/received_events","type":"Organization","site_admin":false},"repo":{"id":42580991,"node_id":"MDEwOlJlcG9zaXRvcnk0MjU4MDk5MQ==","name":"snappydata","full_name":"SnappyDataInc/snappydata","owner":{"login":"SnappyDataInc","id":11342682,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMzQyNjgy","avatar_url":"https://avatars2.githubusercontent.com/u/11342682?v=4","gravatar_id":"","url":"https://api.github.com/users/SnappyDataInc","html_url":"https://github.com/SnappyDataInc","followers_url":"https://api.github.com/users/SnappyDataInc/followers","following_url":"https://api.github.com/users/SnappyDataInc/following{/other_user}","gists_url":"https://api.github.com/users/SnappyDataInc/gists{/gist_id}","starred_url":"https://api.github.com/users/SnappyDataInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SnappyDataInc/subscriptions","organizations_url":"https://api.github.com/users/SnappyDataInc/orgs","repos_url":"https://api.github.com/users/SnappyDataInc/repos","events_url":"https://api.github.com/users/SnappyDataInc/events{/privacy}","received_events_url":"https://api.github.com/users/SnappyDataInc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SnappyDataInc/snappydata","description":"SnappyData - The Spark Database. Stream, Transact, Analyze, Predict in one cluster ","fork":false,"url":"https://api.github.com/repos/SnappyDataInc/snappydata","forks_url":"https://api.github.com/repos/SnappyDataInc/snappydata/forks","keys_url":"https://api.github.com/repos/SnappyDataInc/snappydata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SnappyDataInc/snappydata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SnappyDataInc/snappydata/teams","hooks_url":"https://api.github.com/repos/SnappyDataInc/snappydata/hooks","issue_events_url":"https://api.github.com/repos/SnappyDataInc/snappydata/issues/events{/number}","events_url":"https://api.github.com/repos/SnappyDataInc/snappydata/events","assignees_url":"https://api.github.com/repos/SnappyDataInc/snappydata/assignees{/user}","branches_url":"https://api.github.com/repos/SnappyDataInc/snappydata/branches{/branch}","tags_url":"https://api.github.com/repos/SnappyDataInc/snappydata/tags","blobs_url":"https://api.github.com/repos/SnappyDataInc/snappydata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SnappyDataInc/snappydata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SnappyDataInc/snappydata/git/refs{/sha}","trees_url":"https://api.github.com/repos/SnappyDataInc/snappydata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SnappyDataInc/snappydata/statuses/{sha}","languages_url":"https://api.github.com/repos/SnappyDataInc/snappydata/languages","stargazers_url":"https://api.github.com/repos/SnappyDataInc/snappydata/stargazers","contributors_url":"https://api.github.com/repos/SnappyDataInc/snappydata/contributors","subscribers_url":"https://api.github.com/repos/SnappyDataInc/snappydata/subscribers","subscription_url":"https://api.github.com/repos/SnappyDataInc/snappydata/subscription","commits_url":"https://api.github.com/repos/SnappyDataInc/snappydata/commits{/sha}","git_commits_url":"https://api.github.com/repos/SnappyDataInc/snappydata/git/commits{/sha}","comments_url":"https://api.github.com/repos/SnappyDataInc/snappydata/comments{/number}","issue_comment_url":"https://api.github.com/repos/SnappyDataInc/snappydata/issues/comments{/number}","contents_url":"https://api.github.com/repos/SnappyDataInc/snappydata/contents/{+path}","compare_url":"https://api.github.com/repos/SnappyDataInc/snappydata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SnappyDataInc/snappydata/merges","archive_url":"https://api.github.com/repos/SnappyDataInc/snappydata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SnappyDataInc/snappydata/downloads","issues_url":"https://api.github.com/repos/SnappyDataInc/snappydata/issues{/number}","pulls_url":"https://api.github.com/repos/SnappyDataInc/snappydata/pulls{/number}","milestones_url":"https://api.github.com/repos/SnappyDataInc/snappydata/milestones{/number}","notifications_url":"https://api.github.com/repos/SnappyDataInc/snappydata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SnappyDataInc/snappydata/labels{/name}","releases_url":"https://api.github.com/repos/SnappyDataInc/snappydata/releases{/id}","deployments_url":"https://api.github.com/repos/SnappyDataInc/snappydata/deployments","created_at":"2015-09-16T10:36:36Z","updated_at":"2018-07-17T09:50:59Z","pushed_at":"2018-07-17T11:00:38Z","git_url":"git://github.com/SnappyDataInc/snappydata.git","ssh_url":"git@github.com:SnappyDataInc/snappydata.git","clone_url":"https://github.com/SnappyDataInc/snappydata.git","svn_url":"https://github.com/SnappyDataInc/snappydata","homepage":"http://www.snappydata.io","size":398634,"stargazers_count":757,"watchers_count":757,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":138,"mirror_url":null,"archived":false,"open_issues_count":83,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":138,"open_issues":83,"watchers":757,"default_branch":"master"}},"base":{"label":"SnappyDataInc:master","ref":"master","sha":"fab3f6d245c23d6094ee774952b57cd73837de01","user":{"login":"SnappyDataInc","id":11342682,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMzQyNjgy","avatar_url":"https://avatars2.githubusercontent.com/u/11342682?v=4","gravatar_id":"","url":"https://api.github.com/users/SnappyDataInc","html_url":"https://github.com/SnappyDataInc","followers_url":"https://api.github.com/users/SnappyDataInc/followers","following_url":"https://api.github.com/users/SnappyDataInc/following{/other_user}","gists_url":"https://api.github.com/users/SnappyDataInc/gists{/gist_id}","starred_url":"https://api.github.com/users/SnappyDataInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SnappyDataInc/subscriptions","organizations_url":"https://api.github.com/users/SnappyDataInc/orgs","repos_url":"https://api.github.com/users/SnappyDataInc/repos","events_url":"https://api.github.com/users/SnappyDataInc/events{/privacy}","received_events_url":"https://api.github.com/users/SnappyDataInc/received_events","type":"Organization","site_admin":false},"repo":{"id":42580991,"node_id":"MDEwOlJlcG9zaXRvcnk0MjU4MDk5MQ==","name":"snappydata","full_name":"SnappyDataInc/snappydata","owner":{"login":"SnappyDataInc","id":11342682,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMzQyNjgy","avatar_url":"https://avatars2.githubusercontent.com/u/11342682?v=4","gravatar_id":"","url":"https://api.github.com/users/SnappyDataInc","html_url":"https://github.com/SnappyDataInc","followers_url":"https://api.github.com/users/SnappyDataInc/followers","following_url":"https://api.github.com/users/SnappyDataInc/following{/other_user}","gists_url":"https://api.github.com/users/SnappyDataInc/gists{/gist_id}","starred_url":"https://api.github.com/users/SnappyDataInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SnappyDataInc/subscriptions","organizations_url":"https://api.github.com/users/SnappyDataInc/orgs","repos_url":"https://api.github.com/users/SnappyDataInc/repos","events_url":"https://api.github.com/users/SnappyDataInc/events{/privacy}","received_events_url":"https://api.github.com/users/SnappyDataInc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SnappyDataInc/snappydata","description":"SnappyData - The Spark Database. Stream, Transact, Analyze, Predict in one cluster ","fork":false,"url":"https://api.github.com/repos/SnappyDataInc/snappydata","forks_url":"https://api.github.com/repos/SnappyDataInc/snappydata/forks","keys_url":"https://api.github.com/repos/SnappyDataInc/snappydata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SnappyDataInc/snappydata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SnappyDataInc/snappydata/teams","hooks_url":"https://api.github.com/repos/SnappyDataInc/snappydata/hooks","issue_events_url":"https://api.github.com/repos/SnappyDataInc/snappydata/issues/events{/number}","events_url":"https://api.github.com/repos/SnappyDataInc/snappydata/events","assignees_url":"https://api.github.com/repos/SnappyDataInc/snappydata/assignees{/user}","branches_url":"https://api.github.com/repos/SnappyDataInc/snappydata/branches{/branch}","tags_url":"https://api.github.com/repos/SnappyDataInc/snappydata/tags","blobs_url":"https://api.github.com/repos/SnappyDataInc/snappydata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SnappyDataInc/snappydata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SnappyDataInc/snappydata/git/refs{/sha}","trees_url":"https://api.github.com/repos/SnappyDataInc/snappydata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SnappyDataInc/snappydata/statuses/{sha}","languages_url":"https://api.github.com/repos/SnappyDataInc/snappydata/languages","stargazers_url":"https://api.github.com/repos/SnappyDataInc/snappydata/stargazers","contributors_url":"https://api.github.com/repos/SnappyDataInc/snappydata/contributors","subscribers_url":"https://api.github.com/repos/SnappyDataInc/snappydata/subscribers","subscription_url":"https://api.github.com/repos/SnappyDataInc/snappydata/subscription","commits_url":"https://api.github.com/repos/SnappyDataInc/snappydata/commits{/sha}","git_commits_url":"https://api.github.com/repos/SnappyDataInc/snappydata/git/commits{/sha}","comments_url":"https://api.github.com/repos/SnappyDataInc/snappydata/comments{/number}","issue_comment_url":"https://api.github.com/repos/SnappyDataInc/snappydata/issues/comments{/number}","contents_url":"https://api.github.com/repos/SnappyDataInc/snappydata/contents/{+path}","compare_url":"https://api.github.com/repos/SnappyDataInc/snappydata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SnappyDataInc/snappydata/merges","archive_url":"https://api.github.com/repos/SnappyDataInc/snappydata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SnappyDataInc/snappydata/downloads","issues_url":"https://api.github.com/repos/SnappyDataInc/snappydata/issues{/number}","pulls_url":"https://api.github.com/repos/SnappyDataInc/snappydata/pulls{/number}","milestones_url":"https://api.github.com/repos/SnappyDataInc/snappydata/milestones{/number}","notifications_url":"https://api.github.com/repos/SnappyDataInc/snappydata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SnappyDataInc/snappydata/labels{/name}","releases_url":"https://api.github.com/repos/SnappyDataInc/snappydata/releases{/id}","deployments_url":"https://api.github.com/repos/SnappyDataInc/snappydata/deployments","created_at":"2015-09-16T10:36:36Z","updated_at":"2018-07-17T09:50:59Z","pushed_at":"2018-07-17T11:00:38Z","git_url":"git://github.com/SnappyDataInc/snappydata.git","ssh_url":"git@github.com:SnappyDataInc/snappydata.git","clone_url":"https://github.com/SnappyDataInc/snappydata.git","svn_url":"https://github.com/SnappyDataInc/snappydata","homepage":"http://www.snappydata.io","size":398634,"stargazers_count":757,"watchers_count":757,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":138,"mirror_url":null,"archived":false,"open_issues_count":83,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":138,"open_issues":83,"watchers":757,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SnappyDataInc/snappydata/pulls/1085"},"html":{"href":"https://github.com/SnappyDataInc/snappydata/pull/1085"},"issue":{"href":"https://api.github.com/repos/SnappyDataInc/snappydata/issues/1085"},"comments":{"href":"https://api.github.com/repos/SnappyDataInc/snappydata/issues/1085/comments"},"review_comments":{"href":"https://api.github.com/repos/SnappyDataInc/snappydata/pulls/1085/comments"},"review_comment":{"href":"https://api.github.com/repos/SnappyDataInc/snappydata/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SnappyDataInc/snappydata/pulls/1085/commits"},"statuses":{"href":"https://api.github.com/repos/SnappyDataInc/snappydata/statuses/d4c1e8773d07d9fc2141e295e62ed7381e5d7e3d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sonalsagarwal"}}