You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by mb...@apache.org on 2014/10/02 03:35:11 UTC
[1/3] git commit: HBASE-12120 HBase shell doesn't allow deleting of a
cell by user with W-only permissions to it (Srikanth Srungarapu)
Repository: hbase
Updated Branches:
refs/heads/0.98 64e2fb514 -> acca2883f
refs/heads/branch-1 947f09a62 -> e00492b2c
refs/heads/master 504352e5e -> 79b11ae8f
HBASE-12120 HBase shell doesn't allow deleting of a cell by user with W-only permissions to it (Srikanth Srungarapu)
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/79b11ae8
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/79b11ae8
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/79b11ae8
Branch: refs/heads/master
Commit: 79b11ae8fe4dd5dcdfe43a4ccce93aad84643dc3
Parents: 504352e
Author: Matteo Bertozzi <ma...@cloudera.com>
Authored: Thu Oct 2 02:31:02 2014 +0100
Committer: Matteo Bertozzi <ma...@cloudera.com>
Committed: Thu Oct 2 02:31:02 2014 +0100
----------------------------------------------------------------------
hbase-shell/src/main/ruby/hbase/table.rb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/79b11ae8/hbase-shell/src/main/ruby/hbase/table.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/hbase/table.rb b/hbase-shell/src/main/ruby/hbase/table.rb
index da0295b..f02ba81 100644
--- a/hbase-shell/src/main/ruby/hbase/table.rb
+++ b/hbase-shell/src/main/ruby/hbase/table.rb
@@ -169,7 +169,11 @@ EOF
# Delete a row
def _deleteall_internal(row, column = nil,
timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP, args = {})
- raise ArgumentError, "Row Not Found" if _get_internal(row).nil?
+ # delete operation doesn't need read permission. Retaining the read check for
+ # meta table as a part of HBASE-5837.
+ if is_meta_table?
+ raise ArgumentError, "Row Not Found" if _get_internal(row).nil?
+ end
temptimestamp = timestamp
if temptimestamp.kind_of?(Hash)
timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP
[2/3] git commit: HBASE-12120 HBase shell doesn't allow deleting of a
cell by user with W-only permissions to it (Srikanth Srungarapu)
Posted by mb...@apache.org.
HBASE-12120 HBase shell doesn't allow deleting of a cell by user with W-only permissions to it (Srikanth Srungarapu)
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e00492b2
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e00492b2
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e00492b2
Branch: refs/heads/branch-1
Commit: e00492b2c68b8e09510097a976a4c0d6178c33d4
Parents: 947f09a
Author: Matteo Bertozzi <ma...@cloudera.com>
Authored: Thu Oct 2 02:31:02 2014 +0100
Committer: Matteo Bertozzi <ma...@cloudera.com>
Committed: Thu Oct 2 02:32:25 2014 +0100
----------------------------------------------------------------------
hbase-shell/src/main/ruby/hbase/table.rb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/e00492b2/hbase-shell/src/main/ruby/hbase/table.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/hbase/table.rb b/hbase-shell/src/main/ruby/hbase/table.rb
index cc4f2a7..a83c56a 100644
--- a/hbase-shell/src/main/ruby/hbase/table.rb
+++ b/hbase-shell/src/main/ruby/hbase/table.rb
@@ -169,7 +169,11 @@ EOF
# Delete a row
def _deleteall_internal(row, column = nil,
timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP, args = {})
- raise ArgumentError, "Row Not Found" if _get_internal(row).nil?
+ # delete operation doesn't need read permission. Retaining the read check for
+ # meta table as a part of HBASE-5837.
+ if is_meta_table?
+ raise ArgumentError, "Row Not Found" if _get_internal(row).nil?
+ end
temptimestamp = timestamp
if temptimestamp.kind_of?(Hash)
timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP
[3/3] git commit: HBASE-12120 HBase shell doesn't allow deleting of a
cell by user with W-only permissions to it (Srikanth Srungarapu)
Posted by mb...@apache.org.
HBASE-12120 HBase shell doesn't allow deleting of a cell by user with W-only permissions to it (Srikanth Srungarapu)
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/acca2883
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/acca2883
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/acca2883
Branch: refs/heads/0.98
Commit: acca2883f6f963d714383b395a7ef10ff6f86c0d
Parents: 64e2fb5
Author: Matteo Bertozzi <ma...@cloudera.com>
Authored: Thu Oct 2 02:31:02 2014 +0100
Committer: Matteo Bertozzi <ma...@cloudera.com>
Committed: Thu Oct 2 02:33:20 2014 +0100
----------------------------------------------------------------------
hbase-shell/src/main/ruby/hbase/table.rb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/acca2883/hbase-shell/src/main/ruby/hbase/table.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/hbase/table.rb b/hbase-shell/src/main/ruby/hbase/table.rb
index df4cfe6..3fe006b 100644
--- a/hbase-shell/src/main/ruby/hbase/table.rb
+++ b/hbase-shell/src/main/ruby/hbase/table.rb
@@ -169,7 +169,11 @@ EOF
# Delete a row
def _deleteall_internal(row, column = nil,
timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP, args = {})
- raise ArgumentError, "Row Not Found" if _get_internal(row).nil?
+ # delete operation doesn't need read permission. Retaining the read check for
+ # meta table as a part of HBASE-5837.
+ if is_meta_table?
+ raise ArgumentError, "Row Not Found" if _get_internal(row).nil?
+ end
temptimestamp = timestamp
if temptimestamp.kind_of?(Hash)
timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP