{"action":"created","comment":{"url":"https://api.github.com/repos/caskdata/tephra/pulls/comments/38164609","id":38164609,"diff_hunk":"@@ -0,0 +1,168 @@\n+/*\n+ * Copyright © 2015 Cask Data, Inc.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n+ * use this file except in compliance with the License. You may obtain a copy of\n+ * 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, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n+ * License for the specific language governing permissions and limitations under\n+ * the License.\n+ */\n+package co.cask.tephra.hbase11;\n+\n+import co.cask.tephra.TransactionContext;\n+import co.cask.tephra.TransactionFailureException;\n+import co.cask.tephra.distributed.TransactionServiceClient;\n+import com.google.common.base.Throwables;\n+import org.apache.hadoop.hbase.Cell;\n+import org.apache.hadoop.hbase.HTableDescriptor;\n+import org.apache.hadoop.hbase.KeyValue;\n+import org.apache.hadoop.hbase.TableName;\n+import org.apache.hadoop.hbase.client.Get;\n+import org.apache.hadoop.hbase.client.HBaseAdmin;\n+import org.apache.hadoop.hbase.client.HTable;\n+import org.apache.hadoop.hbase.client.HTableInterface;\n+import org.apache.hadoop.hbase.client.Put;\n+import org.apache.hadoop.hbase.client.Result;\n+import org.apache.hadoop.hbase.client.ResultScanner;\n+import org.apache.hadoop.hbase.client.Scan;\n+import org.apache.hadoop.hbase.util.Bytes;\n+\n+import java.io.IOException;\n+import java.util.ArrayList;\n+import java.util.Collections;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.Set;\n+\n+/**\n+ * A Transactional SecondaryIndexTable.\n+ */\n+public class SecondaryIndexTable {","path":"tephra-hbase-compat-1.1/src/main/java/co/cask/tephra/hbase11/SecondaryIndexTable.java","position":46,"original_position":46,"commit_id":"d07772501fbf828a9e8c79ae6cad9b620a8e410a","original_commit_id":"d07772501fbf828a9e8c79ae6cad9b620a8e410a","user":{"login":"rohitsinha54","id":1472867,"avatar_url":"https://avatars.githubusercontent.com/u/1472867?v=3","gravatar_id":"","url":"https://api.github.com/users/rohitsinha54","html_url":"https://github.com/rohitsinha54","followers_url":"https://api.github.com/users/rohitsinha54/followers","following_url":"https://api.github.com/users/rohitsinha54/following{/other_user}","gists_url":"https://api.github.com/users/rohitsinha54/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitsinha54/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitsinha54/subscriptions","organizations_url":"https://api.github.com/users/rohitsinha54/orgs","repos_url":"https://api.github.com/users/rohitsinha54/repos","events_url":"https://api.github.com/users/rohitsinha54/events{/privacy}","received_events_url":"https://api.github.com/users/rohitsinha54/received_events","type":"User","site_admin":false},"body":"Jira: https://issues.cask.co/browse/TEPHRA-124","created_at":"2015-08-28T01:30:31Z","updated_at":"2015-08-28T01:30:31Z","html_url":"https://github.com/caskdata/tephra/pull/76#discussion_r38164609","pull_request_url":"https://api.github.com/repos/caskdata/tephra/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/caskdata/tephra/pulls/comments/38164609"},"html":{"href":"https://github.com/caskdata/tephra/pull/76#discussion_r38164609"},"pull_request":{"href":"https://api.github.com/repos/caskdata/tephra/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/caskdata/tephra/pulls/76","id":43315331,"html_url":"https://github.com/caskdata/tephra/pull/76","diff_url":"https://github.com/caskdata/tephra/pull/76.diff","patch_url":"https://github.com/caskdata/tephra/pull/76.patch","issue_url":"https://api.github.com/repos/caskdata/tephra/issues/76","number":76,"state":"open","locked":false,"title":"TEPHRA-105: Adding HBase 1.1 compatibility module","user":{"login":"rohitsinha54","id":1472867,"avatar_url":"https://avatars.githubusercontent.com/u/1472867?v=3","gravatar_id":"","url":"https://api.github.com/users/rohitsinha54","html_url":"https://github.com/rohitsinha54","followers_url":"https://api.github.com/users/rohitsinha54/followers","following_url":"https://api.github.com/users/rohitsinha54/following{/other_user}","gists_url":"https://api.github.com/users/rohitsinha54/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitsinha54/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitsinha54/subscriptions","organizations_url":"https://api.github.com/users/rohitsinha54/orgs","repos_url":"https://api.github.com/users/rohitsinha54/repos","events_url":"https://api.github.com/users/rohitsinha54/events{/privacy}","received_events_url":"https://api.github.com/users/rohitsinha54/received_events","type":"User","site_admin":false},"body":"- Adds supports for HBase1.1\r\n- Tested on HBase1.1 cluster using smoke test from here: https://github.com/caskdata/tephra/pull/75\r\n\r\nIssue: https://issues.cask.co/browse/TEPHRA-105","created_at":"2015-08-25T17:46:39Z","updated_at":"2015-08-28T01:30:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f56e3ffe01951701b165ce21ffa4324988187bc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/caskdata/tephra/pulls/76/commits","review_comments_url":"https://api.github.com/repos/caskdata/tephra/pulls/76/comments","review_comment_url":"https://api.github.com/repos/caskdata/tephra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/caskdata/tephra/issues/76/comments","statuses_url":"https://api.github.com/repos/caskdata/tephra/statuses/d07772501fbf828a9e8c79ae6cad9b620a8e410a","head":{"label":"caskdata:feature/hbase11-support","ref":"feature/hbase11-support","sha":"d07772501fbf828a9e8c79ae6cad9b620a8e410a","user":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"repo":{"id":21894018,"name":"tephra","full_name":"caskdata/tephra","owner":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/caskdata/tephra","description":"Transactions for HBase","fork":false,"url":"https://api.github.com/repos/caskdata/tephra","forks_url":"https://api.github.com/repos/caskdata/tephra/forks","keys_url":"https://api.github.com/repos/caskdata/tephra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caskdata/tephra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caskdata/tephra/teams","hooks_url":"https://api.github.com/repos/caskdata/tephra/hooks","issue_events_url":"https://api.github.com/repos/caskdata/tephra/issues/events{/number}","events_url":"https://api.github.com/repos/caskdata/tephra/events","assignees_url":"https://api.github.com/repos/caskdata/tephra/assignees{/user}","branches_url":"https://api.github.com/repos/caskdata/tephra/branches{/branch}","tags_url":"https://api.github.com/repos/caskdata/tephra/tags","blobs_url":"https://api.github.com/repos/caskdata/tephra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caskdata/tephra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caskdata/tephra/git/refs{/sha}","trees_url":"https://api.github.com/repos/caskdata/tephra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caskdata/tephra/statuses/{sha}","languages_url":"https://api.github.com/repos/caskdata/tephra/languages","stargazers_url":"https://api.github.com/repos/caskdata/tephra/stargazers","contributors_url":"https://api.github.com/repos/caskdata/tephra/contributors","subscribers_url":"https://api.github.com/repos/caskdata/tephra/subscribers","subscription_url":"https://api.github.com/repos/caskdata/tephra/subscription","commits_url":"https://api.github.com/repos/caskdata/tephra/commits{/sha}","git_commits_url":"https://api.github.com/repos/caskdata/tephra/git/commits{/sha}","comments_url":"https://api.github.com/repos/caskdata/tephra/comments{/number}","issue_comment_url":"https://api.github.com/repos/caskdata/tephra/issues/comments{/number}","contents_url":"https://api.github.com/repos/caskdata/tephra/contents/{+path}","compare_url":"https://api.github.com/repos/caskdata/tephra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caskdata/tephra/merges","archive_url":"https://api.github.com/repos/caskdata/tephra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caskdata/tephra/downloads","issues_url":"https://api.github.com/repos/caskdata/tephra/issues{/number}","pulls_url":"https://api.github.com/repos/caskdata/tephra/pulls{/number}","milestones_url":"https://api.github.com/repos/caskdata/tephra/milestones{/number}","notifications_url":"https://api.github.com/repos/caskdata/tephra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caskdata/tephra/labels{/name}","releases_url":"https://api.github.com/repos/caskdata/tephra/releases{/id}","created_at":"2014-07-16T09:07:44Z","updated_at":"2015-08-27T06:39:20Z","pushed_at":"2015-08-25T22:28:02Z","git_url":"git://github.com/caskdata/tephra.git","ssh_url":"git@github.com:caskdata/tephra.git","clone_url":"https://github.com/caskdata/tephra.git","svn_url":"https://github.com/caskdata/tephra","homepage":"http://tephra.io","size":2460,"stargazers_count":86,"watchers_count":86,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"open_issues_count":4,"forks":20,"open_issues":4,"watchers":86,"default_branch":"develop"}},"base":{"label":"caskdata:develop","ref":"develop","sha":"ca7e4767fcb94e8910040d85f429e0fbe027d88a","user":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"repo":{"id":21894018,"name":"tephra","full_name":"caskdata/tephra","owner":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/caskdata/tephra","description":"Transactions for HBase","fork":false,"url":"https://api.github.com/repos/caskdata/tephra","forks_url":"https://api.github.com/repos/caskdata/tephra/forks","keys_url":"https://api.github.com/repos/caskdata/tephra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caskdata/tephra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caskdata/tephra/teams","hooks_url":"https://api.github.com/repos/caskdata/tephra/hooks","issue_events_url":"https://api.github.com/repos/caskdata/tephra/issues/events{/number}","events_url":"https://api.github.com/repos/caskdata/tephra/events","assignees_url":"https://api.github.com/repos/caskdata/tephra/assignees{/user}","branches_url":"https://api.github.com/repos/caskdata/tephra/branches{/branch}","tags_url":"https://api.github.com/repos/caskdata/tephra/tags","blobs_url":"https://api.github.com/repos/caskdata/tephra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caskdata/tephra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caskdata/tephra/git/refs{/sha}","trees_url":"https://api.github.com/repos/caskdata/tephra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caskdata/tephra/statuses/{sha}","languages_url":"https://api.github.com/repos/caskdata/tephra/languages","stargazers_url":"https://api.github.com/repos/caskdata/tephra/stargazers","contributors_url":"https://api.github.com/repos/caskdata/tephra/contributors","subscribers_url":"https://api.github.com/repos/caskdata/tephra/subscribers","subscription_url":"https://api.github.com/repos/caskdata/tephra/subscription","commits_url":"https://api.github.com/repos/caskdata/tephra/commits{/sha}","git_commits_url":"https://api.github.com/repos/caskdata/tephra/git/commits{/sha}","comments_url":"https://api.github.com/repos/caskdata/tephra/comments{/number}","issue_comment_url":"https://api.github.com/repos/caskdata/tephra/issues/comments{/number}","contents_url":"https://api.github.com/repos/caskdata/tephra/contents/{+path}","compare_url":"https://api.github.com/repos/caskdata/tephra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caskdata/tephra/merges","archive_url":"https://api.github.com/repos/caskdata/tephra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caskdata/tephra/downloads","issues_url":"https://api.github.com/repos/caskdata/tephra/issues{/number}","pulls_url":"https://api.github.com/repos/caskdata/tephra/pulls{/number}","milestones_url":"https://api.github.com/repos/caskdata/tephra/milestones{/number}","notifications_url":"https://api.github.com/repos/caskdata/tephra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caskdata/tephra/labels{/name}","releases_url":"https://api.github.com/repos/caskdata/tephra/releases{/id}","created_at":"2014-07-16T09:07:44Z","updated_at":"2015-08-27T06:39:20Z","pushed_at":"2015-08-25T22:28:02Z","git_url":"git://github.com/caskdata/tephra.git","ssh_url":"git@github.com:caskdata/tephra.git","clone_url":"https://github.com/caskdata/tephra.git","svn_url":"https://github.com/caskdata/tephra","homepage":"http://tephra.io","size":2460,"stargazers_count":86,"watchers_count":86,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"open_issues_count":4,"forks":20,"open_issues":4,"watchers":86,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/caskdata/tephra/pulls/76"},"html":{"href":"https://github.com/caskdata/tephra/pull/76"},"issue":{"href":"https://api.github.com/repos/caskdata/tephra/issues/76"},"comments":{"href":"https://api.github.com/repos/caskdata/tephra/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/caskdata/tephra/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/caskdata/tephra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/caskdata/tephra/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/caskdata/tephra/statuses/d07772501fbf828a9e8c79ae6cad9b620a8e410a"}}}}