hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-18125 shell disregards spaces at the end of a split key in a split file
Date Wed, 16 Aug 2017 22:18:43 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 d61254b90 -> 4f639e7d8


HBASE-18125 shell disregards spaces at the end of a split key in a split file

Signed-off-by: fchenxi <fchenxi@126.com>
Signed-off-by: Michael Stack <stack@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/4f639e7d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/4f639e7d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/4f639e7d

Branch: refs/heads/branch-1.2
Commit: 4f639e7d8a3ed10851cf2529e5f83493b40ea08e
Parents: d61254b
Author: Chenxi Tong <fchenxi@126.com>
Authored: Wed Aug 9 12:00:53 2017 +0800
Committer: Michael Stack <stack@apache.org>
Committed: Wed Aug 16 15:18:34 2017 -0700

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/hbase/admin.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/4f639e7d/hbase-shell/src/main/ruby/hbase/admin.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/hbase/admin.rb b/hbase-shell/src/main/ruby/hbase/admin.rb
index a755a32..a9e49c5 100644
--- a/hbase-shell/src/main/ruby/hbase/admin.rb
+++ b/hbase-shell/src/main/ruby/hbase/admin.rb
@@ -304,7 +304,7 @@ module Hbase
           end
           arg[SPLITS] = []
           File.foreach(splits_file) do |line|
-            arg[SPLITS].push(line.strip())
+            arg[SPLITS].push(line.chomp)
           end
           htd.setValue(SPLITS_FILE, arg[SPLITS_FILE])
         end


Mime
View raw message