{"action":"created","comment":{"url":"https://api.github.com/repos/apache/flume/pulls/comments/70698003","id":70698003,"diff_hunk":"@@ -1323,6 +1323,64 @@ public void testCloseOnIdle() throws IOException, EventDeliveryException, Interr\n     fs.close();\n   }\n \n+  @Test\n+  public void testBlockCompressSequenceFileWriterSync() throws IOException, EventDeliveryException, InterruptedException {\n+    String hdfsPath = testPath + \"/sequenceFileWriterSync\";\n+    String body = \"test event-\" + System.nanoTime();\n+\n+    Configuration conf = new Configuration();\n+    FileSystem fs = FileSystem.get(conf);\n+\n+    // Since we are reading a partial file we don't want to use checksums\n+    fs.setVerifyChecksum(false);\n+    fs.setWriteChecksum(false);\n+\n+    Path dirPath = new Path(hdfsPath);\n+    fs.delete(dirPath, true);\n+    fs.mkdirs(dirPath);\n+\n+    Context context = new Context();\n+    context.put(\"hdfs.path\", hdfsPath);\n+    // Ensure the file isn't closed and rolled, we are only going to send one event\n+    context.put(\"hdfs.rollCount\", \"10\");\n+    context.put(\"hdfs.rollSize\", \"0\");\n+    context.put(\"hdfs.rollInterval\", \"0\");\n+    context.put(\"hdfs.batchSize\", \"1\");\n+    context.put(\"hdfs.fileType\", \"SequenceFile\");\n+    context.put(\"hdfs.codeC\", \"BZip2Codec\"); // Compression codec that doesn't require native hadoop libraries\n+    context.put(\"hdfs.writeFormat\", \"Writable\");\n+    Configurables.configure(sink, context);\n+\n+    Channel channel = new MemoryChannel();\n+    Configurables.configure(channel, context);\n+\n+    sink.setChannel(channel);\n+    sink.start();\n+\n+    Transaction txn = channel.getTransaction();\n+    txn.begin();\n+    Event event = new SimpleEvent();\n+    event.setBody(body.getBytes());\n+    channel.put(event);","path":"flume-ng-sinks/flume-hdfs-sink/src/test/java/org/apache/flume/sink/hdfs/TestHDFSEventSink.java","position":42,"original_position":42,"commit_id":"1dd320a8c293df9421a0bea24729146d560666ad","original_commit_id":"f03a2406bf44a8300522c1941293e2d74df88d28","user":{"login":"kevinconaway","id":6921953,"avatar_url":"https://avatars.githubusercontent.com/u/6921953?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinconaway","html_url":"https://github.com/kevinconaway","followers_url":"https://api.github.com/users/kevinconaway/followers","following_url":"https://api.github.com/users/kevinconaway/following{/other_user}","gists_url":"https://api.github.com/users/kevinconaway/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinconaway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinconaway/subscriptions","organizations_url":"https://api.github.com/users/kevinconaway/orgs","repos_url":"https://api.github.com/users/kevinconaway/repos","events_url":"https://api.github.com/users/kevinconaway/events{/privacy}","received_events_url":"https://api.github.com/users/kevinconaway/received_events","type":"User","site_admin":false},"body":"> Test all of the following codecs: bzip2, gzip, snappy\r\n\r\nSnappy and gzip require the native hadoop libraries.  Do you know of a work around here to enable that?","created_at":"2016-07-13T20:04:05Z","updated_at":"2016-07-13T20:04:05Z","html_url":"https://github.com/apache/flume/pull/52#discussion_r70698003","pull_request_url":"https://api.github.com/repos/apache/flume/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/apache/flume/pulls/comments/70698003"},"html":{"href":"https://github.com/apache/flume/pull/52#discussion_r70698003"},"pull_request":{"href":"https://api.github.com/repos/apache/flume/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/apache/flume/pulls/52","id":73274701,"html_url":"https://github.com/apache/flume/pull/52","diff_url":"https://github.com/apache/flume/pull/52.diff","patch_url":"https://github.com/apache/flume/pull/52.patch","issue_url":"https://api.github.com/repos/apache/flume/issues/52","number":52,"state":"open","locked":false,"title":"FLUME-2922 Sync SequenceFile.Writer before calling hflush","user":{"login":"kevinconaway","id":6921953,"avatar_url":"https://avatars.githubusercontent.com/u/6921953?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinconaway","html_url":"https://github.com/kevinconaway","followers_url":"https://api.github.com/users/kevinconaway/followers","following_url":"https://api.github.com/users/kevinconaway/following{/other_user}","gists_url":"https://api.github.com/users/kevinconaway/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinconaway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinconaway/subscriptions","organizations_url":"https://api.github.com/users/kevinconaway/orgs","repos_url":"https://api.github.com/users/kevinconaway/repos","events_url":"https://api.github.com/users/kevinconaway/events{/privacy}","received_events_url":"https://api.github.com/users/kevinconaway/received_events","type":"User","site_admin":false},"body":"@harishreedharan will you please review?","created_at":"2016-06-09T19:50:54Z","updated_at":"2016-07-13T20:04:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"996817b36d9587864402d615b87c93e8a65eb3f5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/flume/pulls/52/commits","review_comments_url":"https://api.github.com/repos/apache/flume/pulls/52/comments","review_comment_url":"https://api.github.com/repos/apache/flume/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/flume/issues/52/comments","statuses_url":"https://api.github.com/repos/apache/flume/statuses/1dd320a8c293df9421a0bea24729146d560666ad","head":{"label":"kevinconaway:flume-2922","ref":"flume-2922","sha":"1dd320a8c293df9421a0bea24729146d560666ad","user":{"login":"kevinconaway","id":6921953,"avatar_url":"https://avatars.githubusercontent.com/u/6921953?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinconaway","html_url":"https://github.com/kevinconaway","followers_url":"https://api.github.com/users/kevinconaway/followers","following_url":"https://api.github.com/users/kevinconaway/following{/other_user}","gists_url":"https://api.github.com/users/kevinconaway/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinconaway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinconaway/subscriptions","organizations_url":"https://api.github.com/users/kevinconaway/orgs","repos_url":"https://api.github.com/users/kevinconaway/repos","events_url":"https://api.github.com/users/kevinconaway/events{/privacy}","received_events_url":"https://api.github.com/users/kevinconaway/received_events","type":"User","site_admin":false},"repo":{"id":60771066,"name":"flume","full_name":"kevinconaway/flume","owner":{"login":"kevinconaway","id":6921953,"avatar_url":"https://avatars.githubusercontent.com/u/6921953?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinconaway","html_url":"https://github.com/kevinconaway","followers_url":"https://api.github.com/users/kevinconaway/followers","following_url":"https://api.github.com/users/kevinconaway/following{/other_user}","gists_url":"https://api.github.com/users/kevinconaway/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinconaway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinconaway/subscriptions","organizations_url":"https://api.github.com/users/kevinconaway/orgs","repos_url":"https://api.github.com/users/kevinconaway/repos","events_url":"https://api.github.com/users/kevinconaway/events{/privacy}","received_events_url":"https://api.github.com/users/kevinconaway/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kevinconaway/flume","description":"Mirror of Apache Flume","fork":true,"url":"https://api.github.com/repos/kevinconaway/flume","forks_url":"https://api.github.com/repos/kevinconaway/flume/forks","keys_url":"https://api.github.com/repos/kevinconaway/flume/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kevinconaway/flume/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kevinconaway/flume/teams","hooks_url":"https://api.github.com/repos/kevinconaway/flume/hooks","issue_events_url":"https://api.github.com/repos/kevinconaway/flume/issues/events{/number}","events_url":"https://api.github.com/repos/kevinconaway/flume/events","assignees_url":"https://api.github.com/repos/kevinconaway/flume/assignees{/user}","branches_url":"https://api.github.com/repos/kevinconaway/flume/branches{/branch}","tags_url":"https://api.github.com/repos/kevinconaway/flume/tags","blobs_url":"https://api.github.com/repos/kevinconaway/flume/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kevinconaway/flume/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kevinconaway/flume/git/refs{/sha}","trees_url":"https://api.github.com/repos/kevinconaway/flume/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kevinconaway/flume/statuses/{sha}","languages_url":"https://api.github.com/repos/kevinconaway/flume/languages","stargazers_url":"https://api.github.com/repos/kevinconaway/flume/stargazers","contributors_url":"https://api.github.com/repos/kevinconaway/flume/contributors","subscribers_url":"https://api.github.com/repos/kevinconaway/flume/subscribers","subscription_url":"https://api.github.com/repos/kevinconaway/flume/subscription","commits_url":"https://api.github.com/repos/kevinconaway/flume/commits{/sha}","git_commits_url":"https://api.github.com/repos/kevinconaway/flume/git/commits{/sha}","comments_url":"https://api.github.com/repos/kevinconaway/flume/comments{/number}","issue_comment_url":"https://api.github.com/repos/kevinconaway/flume/issues/comments{/number}","contents_url":"https://api.github.com/repos/kevinconaway/flume/contents/{+path}","compare_url":"https://api.github.com/repos/kevinconaway/flume/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kevinconaway/flume/merges","archive_url":"https://api.github.com/repos/kevinconaway/flume/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kevinconaway/flume/downloads","issues_url":"https://api.github.com/repos/kevinconaway/flume/issues{/number}","pulls_url":"https://api.github.com/repos/kevinconaway/flume/pulls{/number}","milestones_url":"https://api.github.com/repos/kevinconaway/flume/milestones{/number}","notifications_url":"https://api.github.com/repos/kevinconaway/flume/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kevinconaway/flume/labels{/name}","releases_url":"https://api.github.com/repos/kevinconaway/flume/releases{/id}","deployments_url":"https://api.github.com/repos/kevinconaway/flume/deployments","created_at":"2016-06-09T11:51:48Z","updated_at":"2016-06-09T11:51:51Z","pushed_at":"2016-06-10T14:20:26Z","git_url":"git://github.com/kevinconaway/flume.git","ssh_url":"git@github.com:kevinconaway/flume.git","clone_url":"https://github.com/kevinconaway/flume.git","svn_url":"https://github.com/kevinconaway/flume","homepage":"","size":41266,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"trunk"}},"base":{"label":"apache:trunk","ref":"trunk","sha":"f4f15bee1e4ba109c6a21f639668911a13241014","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":2198510,"name":"flume","full_name":"apache/flume","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/flume","description":"Mirror of Apache Flume","fork":false,"url":"https://api.github.com/repos/apache/flume","forks_url":"https://api.github.com/repos/apache/flume/forks","keys_url":"https://api.github.com/repos/apache/flume/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/flume/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/flume/teams","hooks_url":"https://api.github.com/repos/apache/flume/hooks","issue_events_url":"https://api.github.com/repos/apache/flume/issues/events{/number}","events_url":"https://api.github.com/repos/apache/flume/events","assignees_url":"https://api.github.com/repos/apache/flume/assignees{/user}","branches_url":"https://api.github.com/repos/apache/flume/branches{/branch}","tags_url":"https://api.github.com/repos/apache/flume/tags","blobs_url":"https://api.github.com/repos/apache/flume/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/flume/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/flume/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/flume/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/flume/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/flume/languages","stargazers_url":"https://api.github.com/repos/apache/flume/stargazers","contributors_url":"https://api.github.com/repos/apache/flume/contributors","subscribers_url":"https://api.github.com/repos/apache/flume/subscribers","subscription_url":"https://api.github.com/repos/apache/flume/subscription","commits_url":"https://api.github.com/repos/apache/flume/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/flume/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/flume/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/flume/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/flume/contents/{+path}","compare_url":"https://api.github.com/repos/apache/flume/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/flume/merges","archive_url":"https://api.github.com/repos/apache/flume/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/flume/downloads","issues_url":"https://api.github.com/repos/apache/flume/issues{/number}","pulls_url":"https://api.github.com/repos/apache/flume/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/flume/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/flume/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/flume/labels{/name}","releases_url":"https://api.github.com/repos/apache/flume/releases{/id}","deployments_url":"https://api.github.com/repos/apache/flume/deployments","created_at":"2011-08-12T18:20:14Z","updated_at":"2016-07-13T09:52:48Z","pushed_at":"2016-07-13T19:27:13Z","git_url":"git://github.com/apache/flume.git","ssh_url":"git@github.com:apache/flume.git","clone_url":"https://github.com/apache/flume.git","svn_url":"https://github.com/apache/flume","homepage":"","size":42931,"stargazers_count":671,"watchers_count":671,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":571,"mirror_url":"git://git.apache.org/flume.git","open_issues_count":37,"forks":571,"open_issues":37,"watchers":671,"default_branch":"trunk"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/flume/pulls/52"},"html":{"href":"https://github.com/apache/flume/pull/52"},"issue":{"href":"https://api.github.com/repos/apache/flume/issues/52"},"comments":{"href":"https://api.github.com/repos/apache/flume/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/flume/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/flume/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/flume/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/apache/flume/statuses/1dd320a8c293df9421a0bea24729146d560666ad"}}}}
{"actor":{"display_login":"kevinconaway"}}