{"action":"created","comment":{"url":"https://api.github.com/repos/apache/apex-malhar/pulls/comments/73155029","id":73155029,"diff_hunk":"@@ -0,0 +1,132 @@\n+/**\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with the License.  You may obtain a copy of the License at\n+ *\n+ *   http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing,\n+ * software distributed under the License is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ * KIND, either express or implied.  See the License for the\n+ * specific language governing permissions and limitations\n+ * under the License.\n+ */\n+package org.apache.apex.malhar.lib.dedup;\n+\n+import java.io.IOException;\n+import java.util.Date;\n+\n+import javax.validation.ConstraintViolationException;\n+\n+import org.junit.Assert;\n+import org.junit.Test;\n+\n+import org.apache.hadoop.conf.Configuration;\n+\n+import com.datatorrent.api.Context;\n+import com.datatorrent.api.DAG;\n+import com.datatorrent.api.DefaultInputPort;\n+import com.datatorrent.api.DefaultOutputPort;\n+import com.datatorrent.api.InputOperator;\n+import com.datatorrent.api.LocalMode;\n+import com.datatorrent.api.StreamingApplication;\n+import com.datatorrent.common.util.BaseOperator;\n+import com.datatorrent.lib.fileaccess.FileAccessFSImpl;\n+import com.datatorrent.lib.fileaccess.TFileImpl;\n+\n+public class DeduperIdempotencyTest\n+{\n+  public static boolean testFailed = false;\n+\n+  @Test\n+  public void testApplication() throws IOException, Exception\n+  {\n+    try {\n+      LocalMode lma = LocalMode.newInstance();\n+      Configuration conf = new Configuration(false);\n+      lma.prepareDAG(new DeduperIdempotencyTestApp(), conf);\n+      LocalMode.Controller lc = lma.getController();\n+      lc.runAsync();","path":"library/src/test/java/org/apache/apex/malhar/lib/dedup/DeduperIdempotencyTest.java","position":54,"original_position":54,"commit_id":"5744faf818d14b69cecb951e7af445c022ba9f5c","original_commit_id":"5744faf818d14b69cecb951e7af445c022ba9f5c","user":{"login":"bhupeshchawda","id":8895284,"avatar_url":"https://avatars.githubusercontent.com/u/8895284?v=3","gravatar_id":"","url":"https://api.github.com/users/bhupeshchawda","html_url":"https://github.com/bhupeshchawda","followers_url":"https://api.github.com/users/bhupeshchawda/followers","following_url":"https://api.github.com/users/bhupeshchawda/following{/other_user}","gists_url":"https://api.github.com/users/bhupeshchawda/gists{/gist_id}","starred_url":"https://api.github.com/users/bhupeshchawda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhupeshchawda/subscriptions","organizations_url":"https://api.github.com/users/bhupeshchawda/orgs","repos_url":"https://api.github.com/users/bhupeshchawda/repos","events_url":"https://api.github.com/users/bhupeshchawda/events{/privacy}","received_events_url":"https://api.github.com/users/bhupeshchawda/received_events","type":"User","site_admin":false},"body":"done","created_at":"2016-08-02T13:33:47Z","updated_at":"2016-08-02T13:33:47Z","html_url":"https://github.com/apache/apex-malhar/pull/335#discussion_r73155029","pull_request_url":"https://api.github.com/repos/apache/apex-malhar/pulls/335","_links":{"self":{"href":"https://api.github.com/repos/apache/apex-malhar/pulls/comments/73155029"},"html":{"href":"https://github.com/apache/apex-malhar/pull/335#discussion_r73155029"},"pull_request":{"href":"https://api.github.com/repos/apache/apex-malhar/pulls/335"}}},"pull_request":{"url":"https://api.github.com/repos/apache/apex-malhar/pulls/335","id":76572564,"html_url":"https://github.com/apache/apex-malhar/pull/335","diff_url":"https://github.com/apache/apex-malhar/pull/335.diff","patch_url":"https://github.com/apache/apex-malhar/pull/335.patch","issue_url":"https://api.github.com/repos/apache/apex-malhar/issues/335","number":335,"state":"open","locked":false,"title":"[Review Only] APEXMALHAR-1701 Deduper with Managed state","user":{"login":"bhupeshchawda","id":8895284,"avatar_url":"https://avatars.githubusercontent.com/u/8895284?v=3","gravatar_id":"","url":"https://api.github.com/users/bhupeshchawda","html_url":"https://github.com/bhupeshchawda","followers_url":"https://api.github.com/users/bhupeshchawda/followers","following_url":"https://api.github.com/users/bhupeshchawda/following{/other_user}","gists_url":"https://api.github.com/users/bhupeshchawda/gists{/gist_id}","starred_url":"https://api.github.com/users/bhupeshchawda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhupeshchawda/subscriptions","organizations_url":"https://api.github.com/users/bhupeshchawda/orgs","repos_url":"https://api.github.com/users/bhupeshchawda/repos","events_url":"https://api.github.com/users/bhupeshchawda/events{/privacy}","received_events_url":"https://api.github.com/users/bhupeshchawda/received_events","type":"User","site_admin":false},"body":"A Deduper based on managed state.\r\nAdded Pojo implementation. Added unit tests","created_at":"2016-07-07T10:28:58Z","updated_at":"2016-08-02T13:33:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b65551329421e9d1a94eacf0bc4b3c426771ce25","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/apex-malhar/pulls/335/commits","review_comments_url":"https://api.github.com/repos/apache/apex-malhar/pulls/335/comments","review_comment_url":"https://api.github.com/repos/apache/apex-malhar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/apex-malhar/issues/335/comments","statuses_url":"https://api.github.com/repos/apache/apex-malhar/statuses/5744faf818d14b69cecb951e7af445c022ba9f5c","head":{"label":"bhupeshchawda:APEXMALHAR-1701-deduper","ref":"APEXMALHAR-1701-deduper","sha":"5744faf818d14b69cecb951e7af445c022ba9f5c","user":{"login":"bhupeshchawda","id":8895284,"avatar_url":"https://avatars.githubusercontent.com/u/8895284?v=3","gravatar_id":"","url":"https://api.github.com/users/bhupeshchawda","html_url":"https://github.com/bhupeshchawda","followers_url":"https://api.github.com/users/bhupeshchawda/followers","following_url":"https://api.github.com/users/bhupeshchawda/following{/other_user}","gists_url":"https://api.github.com/users/bhupeshchawda/gists{/gist_id}","starred_url":"https://api.github.com/users/bhupeshchawda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhupeshchawda/subscriptions","organizations_url":"https://api.github.com/users/bhupeshchawda/orgs","repos_url":"https://api.github.com/users/bhupeshchawda/repos","events_url":"https://api.github.com/users/bhupeshchawda/events{/privacy}","received_events_url":"https://api.github.com/users/bhupeshchawda/received_events","type":"User","site_admin":false},"repo":{"id":42094500,"name":"apex-malhar","full_name":"bhupeshchawda/apex-malhar","owner":{"login":"bhupeshchawda","id":8895284,"avatar_url":"https://avatars.githubusercontent.com/u/8895284?v=3","gravatar_id":"","url":"https://api.github.com/users/bhupeshchawda","html_url":"https://github.com/bhupeshchawda","followers_url":"https://api.github.com/users/bhupeshchawda/followers","following_url":"https://api.github.com/users/bhupeshchawda/following{/other_user}","gists_url":"https://api.github.com/users/bhupeshchawda/gists{/gist_id}","starred_url":"https://api.github.com/users/bhupeshchawda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhupeshchawda/subscriptions","organizations_url":"https://api.github.com/users/bhupeshchawda/orgs","repos_url":"https://api.github.com/users/bhupeshchawda/repos","events_url":"https://api.github.com/users/bhupeshchawda/events{/privacy}","received_events_url":"https://api.github.com/users/bhupeshchawda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhupeshchawda/apex-malhar","description":"Mirror of Apache Apex malhar (Incubating)","fork":true,"url":"https://api.github.com/repos/bhupeshchawda/apex-malhar","forks_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/forks","keys_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/teams","hooks_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/hooks","issue_events_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/issues/events{/number}","events_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/events","assignees_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/assignees{/user}","branches_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/branches{/branch}","tags_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/tags","blobs_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/statuses/{sha}","languages_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/languages","stargazers_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/stargazers","contributors_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/contributors","subscribers_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/subscribers","subscription_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/subscription","commits_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/issues/comments{/number}","contents_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/contents/{+path}","compare_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/merges","archive_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/downloads","issues_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/issues{/number}","pulls_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/pulls{/number}","milestones_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/milestones{/number}","notifications_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/labels{/name}","releases_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/releases{/id}","deployments_url":"https://api.github.com/repos/bhupeshchawda/apex-malhar/deployments","created_at":"2015-09-08T06:37:32Z","updated_at":"2016-06-06T20:48:42Z","pushed_at":"2016-08-02T10:50:14Z","git_url":"git://github.com/bhupeshchawda/apex-malhar.git","ssh_url":"git@github.com:bhupeshchawda/apex-malhar.git","clone_url":"https://github.com/bhupeshchawda/apex-malhar.git","svn_url":"https://github.com/bhupeshchawda/apex-malhar","homepage":null,"size":86443,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"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":"85566a38ffe22c9141f00bf0d1f64a3f508117c4","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":41348334,"name":"apex-malhar","full_name":"apache/apex-malhar","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/apex-malhar","description":"Mirror of Apache Apex malhar","fork":false,"url":"https://api.github.com/repos/apache/apex-malhar","forks_url":"https://api.github.com/repos/apache/apex-malhar/forks","keys_url":"https://api.github.com/repos/apache/apex-malhar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/apex-malhar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/apex-malhar/teams","hooks_url":"https://api.github.com/repos/apache/apex-malhar/hooks","issue_events_url":"https://api.github.com/repos/apache/apex-malhar/issues/events{/number}","events_url":"https://api.github.com/repos/apache/apex-malhar/events","assignees_url":"https://api.github.com/repos/apache/apex-malhar/assignees{/user}","branches_url":"https://api.github.com/repos/apache/apex-malhar/branches{/branch}","tags_url":"https://api.github.com/repos/apache/apex-malhar/tags","blobs_url":"https://api.github.com/repos/apache/apex-malhar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/apex-malhar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/apex-malhar/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/apex-malhar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/apex-malhar/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/apex-malhar/languages","stargazers_url":"https://api.github.com/repos/apache/apex-malhar/stargazers","contributors_url":"https://api.github.com/repos/apache/apex-malhar/contributors","subscribers_url":"https://api.github.com/repos/apache/apex-malhar/subscribers","subscription_url":"https://api.github.com/repos/apache/apex-malhar/subscription","commits_url":"https://api.github.com/repos/apache/apex-malhar/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/apex-malhar/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/apex-malhar/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/apex-malhar/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/apex-malhar/contents/{+path}","compare_url":"https://api.github.com/repos/apache/apex-malhar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/apex-malhar/merges","archive_url":"https://api.github.com/repos/apache/apex-malhar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/apex-malhar/downloads","issues_url":"https://api.github.com/repos/apache/apex-malhar/issues{/number}","pulls_url":"https://api.github.com/repos/apache/apex-malhar/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/apex-malhar/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/apex-malhar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/apex-malhar/labels{/name}","releases_url":"https://api.github.com/repos/apache/apex-malhar/releases{/id}","deployments_url":"https://api.github.com/repos/apache/apex-malhar/deployments","created_at":"2015-08-25T07:00:05Z","updated_at":"2016-07-26T07:20:23Z","pushed_at":"2016-08-02T10:50:15Z","git_url":"git://github.com/apache/apex-malhar.git","ssh_url":"git@github.com:apache/apex-malhar.git","clone_url":"https://github.com/apache/apex-malhar.git","svn_url":"https://github.com/apache/apex-malhar","homepage":"","size":97298,"stargazers_count":47,"watchers_count":47,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":91,"mirror_url":"git://git.apache.org/incubator-apex-malhar.git","open_issues_count":27,"forks":91,"open_issues":27,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/apex-malhar/pulls/335"},"html":{"href":"https://github.com/apache/apex-malhar/pull/335"},"issue":{"href":"https://api.github.com/repos/apache/apex-malhar/issues/335"},"comments":{"href":"https://api.github.com/repos/apache/apex-malhar/issues/335/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/apex-malhar/pulls/335/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/apex-malhar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/apex-malhar/pulls/335/commits"},"statuses":{"href":"https://api.github.com/repos/apache/apex-malhar/statuses/5744faf818d14b69cecb951e7af445c022ba9f5c"}}}}
{"actor":{"display_login":"bhupeshchawda"}}