{"action":"created","comment":{"url":"https://api.github.com/repos/apache/reef/pulls/comments/65779086","id":65779086,"diff_hunk":"@@ -349,14 +351,33 @@ private void StartTask(StartTaskProto startTaskProto)\n         private void HandleTaskException(TaskClientCodeException e)\n         {\n             LOGGER.Log(Level.Error, \"TaskClientCodeException\", e);\n-            byte[] exception = ByteUtilities.StringToByteArrays(e.ToString());\n-            TaskStatusProto taskStatus = new TaskStatusProto()\n+            byte[] error;\n+            try\n+            {\n+                error = ByteUtilities.SerializeToBinaryFormat(e);\n+            }\n+            catch (SerializationException se)\n+            {\n+                error = ByteUtilities.SerializeToBinaryFormat(","path":"lang/cs/Org.Apache.REEF.Common/Runtime/Evaluator/Context/ContextManager.cs","position":22,"original_position":22,"commit_id":"45275e90c7aa5fe82fb0f2130756beab6d8ad0ac","original_commit_id":"45275e90c7aa5fe82fb0f2130756beab6d8ad0ac","user":{"login":"jwang98052","id":5666504,"avatar_url":"https://avatars.githubusercontent.com/u/5666504?v=3","gravatar_id":"","url":"https://api.github.com/users/jwang98052","html_url":"https://github.com/jwang98052","followers_url":"https://api.github.com/users/jwang98052/followers","following_url":"https://api.github.com/users/jwang98052/following{/other_user}","gists_url":"https://api.github.com/users/jwang98052/gists{/gist_id}","starred_url":"https://api.github.com/users/jwang98052/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwang98052/subscriptions","organizations_url":"https://api.github.com/users/jwang98052/orgs","repos_url":"https://api.github.com/users/jwang98052/repos","events_url":"https://api.github.com/users/jwang98052/events{/privacy}","received_events_url":"https://api.github.com/users/jwang98052/received_events","type":"User","site_admin":false},"body":"As TaskClientCodeException is serializable, is it still possible to have SerializationException here?  ","created_at":"2016-06-03T21:33:42Z","updated_at":"2016-06-03T21:33:42Z","html_url":"https://github.com/apache/reef/pull/1019#discussion_r65779086","pull_request_url":"https://api.github.com/repos/apache/reef/pulls/1019","_links":{"self":{"href":"https://api.github.com/repos/apache/reef/pulls/comments/65779086"},"html":{"href":"https://github.com/apache/reef/pull/1019#discussion_r65779086"},"pull_request":{"href":"https://api.github.com/repos/apache/reef/pulls/1019"}}},"pull_request":{"url":"https://api.github.com/repos/apache/reef/pulls/1019","id":72101611,"html_url":"https://github.com/apache/reef/pull/1019","diff_url":"https://github.com/apache/reef/pull/1019.diff","patch_url":"https://github.com/apache/reef/pull/1019.patch","issue_url":"https://api.github.com/repos/apache/reef/issues/1019","number":1019,"state":"open","locked":false,"title":"[REEF-1410] Validate Task constructor failure => FailedTask Event","user":{"login":"afchung","id":2817619,"avatar_url":"https://avatars.githubusercontent.com/u/2817619?v=3","gravatar_id":"","url":"https://api.github.com/users/afchung","html_url":"https://github.com/afchung","followers_url":"https://api.github.com/users/afchung/followers","following_url":"https://api.github.com/users/afchung/following{/other_user}","gists_url":"https://api.github.com/users/afchung/gists{/gist_id}","starred_url":"https://api.github.com/users/afchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afchung/subscriptions","organizations_url":"https://api.github.com/users/afchung/orgs","repos_url":"https://api.github.com/users/afchung/repos","events_url":"https://api.github.com/users/afchung/events{/privacy}","received_events_url":"https://api.github.com/users/afchung/received_events","type":"User","site_admin":false},"body":"This addressed the issue by\r\n  * Fixing heartbeat failure if task fails to start.\r\n  * Adding a test to verify Task failure message.\r\n\r\nJIRA:\r\n  [REEF-1410](https://issues.apache.org/jira/browse/REEF-1410)","created_at":"2016-05-31T23:25:25Z","updated_at":"2016-06-03T21:33:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40b5439e15f0ef63b05fc34f323291a619194eea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/reef/pulls/1019/commits","review_comments_url":"https://api.github.com/repos/apache/reef/pulls/1019/comments","review_comment_url":"https://api.github.com/repos/apache/reef/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/reef/issues/1019/comments","statuses_url":"https://api.github.com/repos/apache/reef/statuses/45275e90c7aa5fe82fb0f2130756beab6d8ad0ac","head":{"label":"afchung:REEF-1410","ref":"REEF-1410","sha":"45275e90c7aa5fe82fb0f2130756beab6d8ad0ac","user":{"login":"afchung","id":2817619,"avatar_url":"https://avatars.githubusercontent.com/u/2817619?v=3","gravatar_id":"","url":"https://api.github.com/users/afchung","html_url":"https://github.com/afchung","followers_url":"https://api.github.com/users/afchung/followers","following_url":"https://api.github.com/users/afchung/following{/other_user}","gists_url":"https://api.github.com/users/afchung/gists{/gist_id}","starred_url":"https://api.github.com/users/afchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afchung/subscriptions","organizations_url":"https://api.github.com/users/afchung/orgs","repos_url":"https://api.github.com/users/afchung/repos","events_url":"https://api.github.com/users/afchung/events{/privacy}","received_events_url":"https://api.github.com/users/afchung/received_events","type":"User","site_admin":false},"repo":{"id":31485914,"name":"reef","full_name":"afchung/reef","owner":{"login":"afchung","id":2817619,"avatar_url":"https://avatars.githubusercontent.com/u/2817619?v=3","gravatar_id":"","url":"https://api.github.com/users/afchung","html_url":"https://github.com/afchung","followers_url":"https://api.github.com/users/afchung/followers","following_url":"https://api.github.com/users/afchung/following{/other_user}","gists_url":"https://api.github.com/users/afchung/gists{/gist_id}","starred_url":"https://api.github.com/users/afchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afchung/subscriptions","organizations_url":"https://api.github.com/users/afchung/orgs","repos_url":"https://api.github.com/users/afchung/repos","events_url":"https://api.github.com/users/afchung/events{/privacy}","received_events_url":"https://api.github.com/users/afchung/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/afchung/reef","description":"Mirror of Apache REEF","fork":true,"url":"https://api.github.com/repos/afchung/reef","forks_url":"https://api.github.com/repos/afchung/reef/forks","keys_url":"https://api.github.com/repos/afchung/reef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/afchung/reef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/afchung/reef/teams","hooks_url":"https://api.github.com/repos/afchung/reef/hooks","issue_events_url":"https://api.github.com/repos/afchung/reef/issues/events{/number}","events_url":"https://api.github.com/repos/afchung/reef/events","assignees_url":"https://api.github.com/repos/afchung/reef/assignees{/user}","branches_url":"https://api.github.com/repos/afchung/reef/branches{/branch}","tags_url":"https://api.github.com/repos/afchung/reef/tags","blobs_url":"https://api.github.com/repos/afchung/reef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/afchung/reef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/afchung/reef/git/refs{/sha}","trees_url":"https://api.github.com/repos/afchung/reef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/afchung/reef/statuses/{sha}","languages_url":"https://api.github.com/repos/afchung/reef/languages","stargazers_url":"https://api.github.com/repos/afchung/reef/stargazers","contributors_url":"https://api.github.com/repos/afchung/reef/contributors","subscribers_url":"https://api.github.com/repos/afchung/reef/subscribers","subscription_url":"https://api.github.com/repos/afchung/reef/subscription","commits_url":"https://api.github.com/repos/afchung/reef/commits{/sha}","git_commits_url":"https://api.github.com/repos/afchung/reef/git/commits{/sha}","comments_url":"https://api.github.com/repos/afchung/reef/comments{/number}","issue_comment_url":"https://api.github.com/repos/afchung/reef/issues/comments{/number}","contents_url":"https://api.github.com/repos/afchung/reef/contents/{+path}","compare_url":"https://api.github.com/repos/afchung/reef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/afchung/reef/merges","archive_url":"https://api.github.com/repos/afchung/reef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/afchung/reef/downloads","issues_url":"https://api.github.com/repos/afchung/reef/issues{/number}","pulls_url":"https://api.github.com/repos/afchung/reef/pulls{/number}","milestones_url":"https://api.github.com/repos/afchung/reef/milestones{/number}","notifications_url":"https://api.github.com/repos/afchung/reef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/afchung/reef/labels{/name}","releases_url":"https://api.github.com/repos/afchung/reef/releases{/id}","deployments_url":"https://api.github.com/repos/afchung/reef/deployments","created_at":"2015-03-01T03:44:31Z","updated_at":"2016-01-13T15:51:07Z","pushed_at":"2016-06-03T18:22:59Z","git_url":"git://github.com/afchung/reef.git","ssh_url":"git@github.com:afchung/reef.git","clone_url":"https://github.com/afchung/reef.git","svn_url":"https://github.com/afchung/reef","homepage":"","size":35660,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"d5a671b85ed24c3e068e649f41185e0bd8a2be0e","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":25623941,"name":"reef","full_name":"apache/reef","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/reef","description":"Mirror of Apache REEF","fork":false,"url":"https://api.github.com/repos/apache/reef","forks_url":"https://api.github.com/repos/apache/reef/forks","keys_url":"https://api.github.com/repos/apache/reef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/reef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/reef/teams","hooks_url":"https://api.github.com/repos/apache/reef/hooks","issue_events_url":"https://api.github.com/repos/apache/reef/issues/events{/number}","events_url":"https://api.github.com/repos/apache/reef/events","assignees_url":"https://api.github.com/repos/apache/reef/assignees{/user}","branches_url":"https://api.github.com/repos/apache/reef/branches{/branch}","tags_url":"https://api.github.com/repos/apache/reef/tags","blobs_url":"https://api.github.com/repos/apache/reef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/reef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/reef/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/reef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/reef/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/reef/languages","stargazers_url":"https://api.github.com/repos/apache/reef/stargazers","contributors_url":"https://api.github.com/repos/apache/reef/contributors","subscribers_url":"https://api.github.com/repos/apache/reef/subscribers","subscription_url":"https://api.github.com/repos/apache/reef/subscription","commits_url":"https://api.github.com/repos/apache/reef/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/reef/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/reef/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/reef/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/reef/contents/{+path}","compare_url":"https://api.github.com/repos/apache/reef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/reef/merges","archive_url":"https://api.github.com/repos/apache/reef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/reef/downloads","issues_url":"https://api.github.com/repos/apache/reef/issues{/number}","pulls_url":"https://api.github.com/repos/apache/reef/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/reef/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/reef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/reef/labels{/name}","releases_url":"https://api.github.com/repos/apache/reef/releases{/id}","deployments_url":"https://api.github.com/repos/apache/reef/deployments","created_at":"2014-10-23T07:00:10Z","updated_at":"2016-05-26T20:59:10Z","pushed_at":"2016-06-03T18:23:30Z","git_url":"git://github.com/apache/reef.git","ssh_url":"git@github.com:apache/reef.git","clone_url":"https://github.com/apache/reef.git","svn_url":"https://github.com/apache/reef","homepage":"","size":48401,"stargazers_count":51,"watchers_count":51,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":57,"mirror_url":"git://git.apache.org/reef.git","open_issues_count":5,"forks":57,"open_issues":5,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/reef/pulls/1019"},"html":{"href":"https://github.com/apache/reef/pull/1019"},"issue":{"href":"https://api.github.com/repos/apache/reef/issues/1019"},"comments":{"href":"https://api.github.com/repos/apache/reef/issues/1019/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/reef/pulls/1019/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/reef/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/reef/pulls/1019/commits"},"statuses":{"href":"https://api.github.com/repos/apache/reef/statuses/45275e90c7aa5fe82fb0f2130756beab6d8ad0ac"}}}}
{"actor":{"display_login":"jwang98052"}}