{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/5535","labels_url":"https://api.github.com/repos/apache/spark/issues/5535/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/5535/comments","events_url":"https://api.github.com/repos/apache/spark/issues/5535/events","html_url":"https://github.com/apache/spark/pull/5535","id":68813459,"number":5535,"title":"[SPARK-6952] Handle long args when detecting PID reuse","user":{"login":"punya","id":277514,"avatar_url":"https://avatars.githubusercontent.com/u/277514?v=3","gravatar_id":"","url":"https://api.github.com/users/punya","html_url":"https://github.com/punya","followers_url":"https://api.github.com/users/punya/followers","following_url":"https://api.github.com/users/punya/following{/other_user}","gists_url":"https://api.github.com/users/punya/gists{/gist_id}","starred_url":"https://api.github.com/users/punya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/punya/subscriptions","organizations_url":"https://api.github.com/users/punya/orgs","repos_url":"https://api.github.com/users/punya/repos","events_url":"https://api.github.com/users/punya/events{/privacy}","received_events_url":"https://api.github.com/users/punya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-16T00:01:48Z","updated_at":"2015-04-16T01:34:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/5535","html_url":"https://github.com/apache/spark/pull/5535","diff_url":"https://github.com/apache/spark/pull/5535.diff","patch_url":"https://github.com/apache/spark/pull/5535.patch"},"body":"sbin/spark-daemon.sh used\r\n\r\n    ps -p \"$TARGET_PID\" -o args=\r\n\r\nto figure out whether the process running with the expected PID is actually a Spark\r\ndaemon. When running with a large classpath, the output of ps gets\r\ntruncated and the check fails spuriously.\r\n\r\nThis weakens the check to see if it's a java command (which is something\r\nwe do in other parts of the script) rather than looking for the specific\r\nmain class name. This means that SPARK-4832 might happen under a\r\nslightly broader range of circumstances (a java program happened to\r\nreuse the same PID), but it seems worthwhile compared to failing\r\nconsistently with a large classpath."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/93613111","html_url":"https://github.com/apache/spark/pull/5535#issuecomment-93613111","issue_url":"https://api.github.com/repos/apache/spark/issues/5535","id":93613111,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T01:34:06Z","updated_at":"2015-04-16T01:34:06Z","body":"Test PASSed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/30383/\nTest PASSed."}}