{"action":"created","comment":{"url":"https://api.github.com/repos/DataTorrent/Apex/pulls/comments/37784347","id":37784347,"diff_hunk":"@@ -0,0 +1,60 @@\n+package com.datatorrent.stram.plan.logical;\n+\n+import java.io.ByteArrayInputStream;\n+import java.io.ByteArrayOutputStream;\n+import java.io.IOException;\n+import java.io.ObjectInputStream;\n+import java.io.Serializable;\n+\n+import com.esotericsoftware.kryo.Kryo;\n+import com.esotericsoftware.kryo.io.Input;\n+import com.esotericsoftware.kryo.io.Output;\n+import com.datatorrent.api.StreamCodec;\n+import com.datatorrent.netlet.util.Slice;\n+\n+/**\n+ * This codec is used for serializing the objects of class which are Kryo\n+ * serializable. Used for stream codec wrapper used for persistence\n+ */\n+public class DefaultKryoStreamCodec<T> implements StreamCodec<T>, Serializable\n+{\n+  protected transient Kryo kryo;\n+\n+  public DefaultKryoStreamCodec()\n+  {\n+    this.kryo = new Kryo();\n+    this.kryo.setClassLoader(Thread.currentThread().getContextClassLoader());\n+  }\n+\n+  private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\n+  {\n+    in.defaultReadObject();","path":"engine/src/main/java/com/datatorrent/stram/plan/logical/DefaultKryoStreamCodec.java","position":31,"original_position":31,"commit_id":"11eabf41041e8afb30275ca03e23e4b7e816a963","original_commit_id":"11eabf41041e8afb30275ca03e23e4b7e816a963","user":{"login":"243826","id":2702787,"avatar_url":"https://avatars.githubusercontent.com/u/2702787?v=3","gravatar_id":"","url":"https://api.github.com/users/243826","html_url":"https://github.com/243826","followers_url":"https://api.github.com/users/243826/followers","following_url":"https://api.github.com/users/243826/following{/other_user}","gists_url":"https://api.github.com/users/243826/gists{/gist_id}","starred_url":"https://api.github.com/users/243826/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/243826/subscriptions","organizations_url":"https://api.github.com/users/243826/orgs","repos_url":"https://api.github.com/users/243826/repos","events_url":"https://api.github.com/users/243826/events{/privacy}","received_events_url":"https://api.github.com/users/243826/received_events","type":"User","site_admin":false},"body":"why is the Kryo being reinitialized here?","created_at":"2015-08-24T18:24:51Z","updated_at":"2015-08-24T18:24:51Z","html_url":"https://github.com/DataTorrent/Apex/pull/113#discussion_r37784347","pull_request_url":"https://api.github.com/repos/DataTorrent/Apex/pulls/113","_links":{"self":{"href":"https://api.github.com/repos/DataTorrent/Apex/pulls/comments/37784347"},"html":{"href":"https://github.com/DataTorrent/Apex/pull/113#discussion_r37784347"},"pull_request":{"href":"https://api.github.com/repos/DataTorrent/Apex/pulls/113"}}},"pull_request":{"url":"https://api.github.com/repos/DataTorrent/Apex/pulls/113","id":41847739,"html_url":"https://github.com/DataTorrent/Apex/pull/113","diff_url":"https://github.com/DataTorrent/Apex/pull/113.diff","patch_url":"https://github.com/DataTorrent/Apex/pull/113.patch","issue_url":"https://api.github.com/repos/DataTorrent/Apex/issues/113","number":113,"state":"open","locked":false,"title":"APEX-2 #resolve Support for persist operation for Stream Meta object.…","user":{"login":"ishark","id":723624,"avatar_url":"https://avatars.githubusercontent.com/u/723624?v=3","gravatar_id":"","url":"https://api.github.com/users/ishark","html_url":"https://github.com/ishark","followers_url":"https://api.github.com/users/ishark/followers","following_url":"https://api.github.com/users/ishark/following{/other_user}","gists_url":"https://api.github.com/users/ishark/gists{/gist_id}","starred_url":"https://api.github.com/users/ishark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishark/subscriptions","organizations_url":"https://api.github.com/users/ishark/orgs","repos_url":"https://api.github.com/users/ishark/repos","events_url":"https://api.github.com/users/ishark/events{/privacy}","received_events_url":"https://api.github.com/users/ishark/received_events","type":"User","site_admin":false},"body":"… Entire stream or specific sinks can be persisted with this change.\r\n\r\n    Stream persistance flow captures union of data flowing to all connected sinks\r\n    Added unit tests for the same","created_at":"2015-08-06T23:54:35Z","updated_at":"2015-08-24T18:24:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8683a7b87546f7d4fe1f5e1ea55ca45cc57b8d4d","assignee":{"login":"243826","id":2702787,"avatar_url":"https://avatars.githubusercontent.com/u/2702787?v=3","gravatar_id":"","url":"https://api.github.com/users/243826","html_url":"https://github.com/243826","followers_url":"https://api.github.com/users/243826/followers","following_url":"https://api.github.com/users/243826/following{/other_user}","gists_url":"https://api.github.com/users/243826/gists{/gist_id}","starred_url":"https://api.github.com/users/243826/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/243826/subscriptions","organizations_url":"https://api.github.com/users/243826/orgs","repos_url":"https://api.github.com/users/243826/repos","events_url":"https://api.github.com/users/243826/events{/privacy}","received_events_url":"https://api.github.com/users/243826/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/DataTorrent/Apex/pulls/113/commits","review_comments_url":"https://api.github.com/repos/DataTorrent/Apex/pulls/113/comments","review_comment_url":"https://api.github.com/repos/DataTorrent/Apex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DataTorrent/Apex/issues/113/comments","statuses_url":"https://api.github.com/repos/DataTorrent/Apex/statuses/11eabf41041e8afb30275ca03e23e4b7e816a963","head":{"label":"ishark:Apex-2-3.1.0","ref":"Apex-2-3.1.0","sha":"11eabf41041e8afb30275ca03e23e4b7e816a963","user":{"login":"ishark","id":723624,"avatar_url":"https://avatars.githubusercontent.com/u/723624?v=3","gravatar_id":"","url":"https://api.github.com/users/ishark","html_url":"https://github.com/ishark","followers_url":"https://api.github.com/users/ishark/followers","following_url":"https://api.github.com/users/ishark/following{/other_user}","gists_url":"https://api.github.com/users/ishark/gists{/gist_id}","starred_url":"https://api.github.com/users/ishark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishark/subscriptions","organizations_url":"https://api.github.com/users/ishark/orgs","repos_url":"https://api.github.com/users/ishark/repos","events_url":"https://api.github.com/users/ishark/events{/privacy}","received_events_url":"https://api.github.com/users/ishark/received_events","type":"User","site_admin":false},"repo":{"id":38261595,"name":"Apex","full_name":"ishark/Apex","owner":{"login":"ishark","id":723624,"avatar_url":"https://avatars.githubusercontent.com/u/723624?v=3","gravatar_id":"","url":"https://api.github.com/users/ishark","html_url":"https://github.com/ishark","followers_url":"https://api.github.com/users/ishark/followers","following_url":"https://api.github.com/users/ishark/following{/other_user}","gists_url":"https://api.github.com/users/ishark/gists{/gist_id}","starred_url":"https://api.github.com/users/ishark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishark/subscriptions","organizations_url":"https://api.github.com/users/ishark/orgs","repos_url":"https://api.github.com/users/ishark/repos","events_url":"https://api.github.com/users/ishark/events{/privacy}","received_events_url":"https://api.github.com/users/ishark/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ishark/Apex","description":"Open Core for DataTorrent RTS","fork":true,"url":"https://api.github.com/repos/ishark/Apex","forks_url":"https://api.github.com/repos/ishark/Apex/forks","keys_url":"https://api.github.com/repos/ishark/Apex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ishark/Apex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ishark/Apex/teams","hooks_url":"https://api.github.com/repos/ishark/Apex/hooks","issue_events_url":"https://api.github.com/repos/ishark/Apex/issues/events{/number}","events_url":"https://api.github.com/repos/ishark/Apex/events","assignees_url":"https://api.github.com/repos/ishark/Apex/assignees{/user}","branches_url":"https://api.github.com/repos/ishark/Apex/branches{/branch}","tags_url":"https://api.github.com/repos/ishark/Apex/tags","blobs_url":"https://api.github.com/repos/ishark/Apex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ishark/Apex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ishark/Apex/git/refs{/sha}","trees_url":"https://api.github.com/repos/ishark/Apex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ishark/Apex/statuses/{sha}","languages_url":"https://api.github.com/repos/ishark/Apex/languages","stargazers_url":"https://api.github.com/repos/ishark/Apex/stargazers","contributors_url":"https://api.github.com/repos/ishark/Apex/contributors","subscribers_url":"https://api.github.com/repos/ishark/Apex/subscribers","subscription_url":"https://api.github.com/repos/ishark/Apex/subscription","commits_url":"https://api.github.com/repos/ishark/Apex/commits{/sha}","git_commits_url":"https://api.github.com/repos/ishark/Apex/git/commits{/sha}","comments_url":"https://api.github.com/repos/ishark/Apex/comments{/number}","issue_comment_url":"https://api.github.com/repos/ishark/Apex/issues/comments{/number}","contents_url":"https://api.github.com/repos/ishark/Apex/contents/{+path}","compare_url":"https://api.github.com/repos/ishark/Apex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ishark/Apex/merges","archive_url":"https://api.github.com/repos/ishark/Apex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ishark/Apex/downloads","issues_url":"https://api.github.com/repos/ishark/Apex/issues{/number}","pulls_url":"https://api.github.com/repos/ishark/Apex/pulls{/number}","milestones_url":"https://api.github.com/repos/ishark/Apex/milestones{/number}","notifications_url":"https://api.github.com/repos/ishark/Apex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ishark/Apex/labels{/name}","releases_url":"https://api.github.com/repos/ishark/Apex/releases{/id}","created_at":"2015-06-29T17:45:39Z","updated_at":"2015-06-29T17:45:41Z","pushed_at":"2015-08-21T21:29:15Z","git_url":"git://github.com/ishark/Apex.git","ssh_url":"git@github.com:ishark/Apex.git","clone_url":"https://github.com/ishark/Apex.git","svn_url":"https://github.com/ishark/Apex","homepage":null,"size":14487,"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":"DataTorrent:v3.1.0","ref":"v3.1.0","sha":"9d08532a7127bf57d8d0ace45c0a165581d17daf","user":{"login":"DataTorrent","id":4400063,"avatar_url":"https://avatars.githubusercontent.com/u/4400063?v=3","gravatar_id":"","url":"https://api.github.com/users/DataTorrent","html_url":"https://github.com/DataTorrent","followers_url":"https://api.github.com/users/DataTorrent/followers","following_url":"https://api.github.com/users/DataTorrent/following{/other_user}","gists_url":"https://api.github.com/users/DataTorrent/gists{/gist_id}","starred_url":"https://api.github.com/users/DataTorrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataTorrent/subscriptions","organizations_url":"https://api.github.com/users/DataTorrent/orgs","repos_url":"https://api.github.com/users/DataTorrent/repos","events_url":"https://api.github.com/users/DataTorrent/events{/privacy}","received_events_url":"https://api.github.com/users/DataTorrent/received_events","type":"Organization","site_admin":false},"repo":{"id":36766032,"name":"Apex","full_name":"DataTorrent/Apex","owner":{"login":"DataTorrent","id":4400063,"avatar_url":"https://avatars.githubusercontent.com/u/4400063?v=3","gravatar_id":"","url":"https://api.github.com/users/DataTorrent","html_url":"https://github.com/DataTorrent","followers_url":"https://api.github.com/users/DataTorrent/followers","following_url":"https://api.github.com/users/DataTorrent/following{/other_user}","gists_url":"https://api.github.com/users/DataTorrent/gists{/gist_id}","starred_url":"https://api.github.com/users/DataTorrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataTorrent/subscriptions","organizations_url":"https://api.github.com/users/DataTorrent/orgs","repos_url":"https://api.github.com/users/DataTorrent/repos","events_url":"https://api.github.com/users/DataTorrent/events{/privacy}","received_events_url":"https://api.github.com/users/DataTorrent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DataTorrent/Apex","description":"Open Core for DataTorrent RTS","fork":false,"url":"https://api.github.com/repos/DataTorrent/Apex","forks_url":"https://api.github.com/repos/DataTorrent/Apex/forks","keys_url":"https://api.github.com/repos/DataTorrent/Apex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataTorrent/Apex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataTorrent/Apex/teams","hooks_url":"https://api.github.com/repos/DataTorrent/Apex/hooks","issue_events_url":"https://api.github.com/repos/DataTorrent/Apex/issues/events{/number}","events_url":"https://api.github.com/repos/DataTorrent/Apex/events","assignees_url":"https://api.github.com/repos/DataTorrent/Apex/assignees{/user}","branches_url":"https://api.github.com/repos/DataTorrent/Apex/branches{/branch}","tags_url":"https://api.github.com/repos/DataTorrent/Apex/tags","blobs_url":"https://api.github.com/repos/DataTorrent/Apex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataTorrent/Apex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataTorrent/Apex/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataTorrent/Apex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataTorrent/Apex/statuses/{sha}","languages_url":"https://api.github.com/repos/DataTorrent/Apex/languages","stargazers_url":"https://api.github.com/repos/DataTorrent/Apex/stargazers","contributors_url":"https://api.github.com/repos/DataTorrent/Apex/contributors","subscribers_url":"https://api.github.com/repos/DataTorrent/Apex/subscribers","subscription_url":"https://api.github.com/repos/DataTorrent/Apex/subscription","commits_url":"https://api.github.com/repos/DataTorrent/Apex/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataTorrent/Apex/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataTorrent/Apex/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataTorrent/Apex/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataTorrent/Apex/contents/{+path}","compare_url":"https://api.github.com/repos/DataTorrent/Apex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataTorrent/Apex/merges","archive_url":"https://api.github.com/repos/DataTorrent/Apex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataTorrent/Apex/downloads","issues_url":"https://api.github.com/repos/DataTorrent/Apex/issues{/number}","pulls_url":"https://api.github.com/repos/DataTorrent/Apex/pulls{/number}","milestones_url":"https://api.github.com/repos/DataTorrent/Apex/milestones{/number}","notifications_url":"https://api.github.com/repos/DataTorrent/Apex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataTorrent/Apex/labels{/name}","releases_url":"https://api.github.com/repos/DataTorrent/Apex/releases{/id}","created_at":"2015-06-02T22:41:04Z","updated_at":"2015-08-24T15:28:51Z","pushed_at":"2015-08-22T02:32:08Z","git_url":"git://github.com/DataTorrent/Apex.git","ssh_url":"git@github.com:DataTorrent/Apex.git","clone_url":"https://github.com/DataTorrent/Apex.git","svn_url":"https://github.com/DataTorrent/Apex","homepage":null,"size":40349,"stargazers_count":18,"watchers_count":18,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":6,"forks":31,"open_issues":6,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DataTorrent/Apex/pulls/113"},"html":{"href":"https://github.com/DataTorrent/Apex/pull/113"},"issue":{"href":"https://api.github.com/repos/DataTorrent/Apex/issues/113"},"comments":{"href":"https://api.github.com/repos/DataTorrent/Apex/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/DataTorrent/Apex/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/DataTorrent/Apex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DataTorrent/Apex/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/DataTorrent/Apex/statuses/11eabf41041e8afb30275ca03e23e4b7e816a963"}}}}