Repository: hbase
Updated Branches:
  refs/heads/branch-1.4 60f88a970 -> f936b6305


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

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


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

Branch: refs/heads/branch-1.4
Commit: f936b630530f7ed528c4f6b2feec80efa258abe3
Parents: 60f88a9
Author: Chenxi Tong <fche...@126.com>
Authored: Wed Aug 9 12:00:53 2017 +0800
Committer: Michael Stack <st...@apache.org>
Committed: Wed Aug 16 15:17:40 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/f936b630/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 502abe2..b225e1a 100644
--- a/hbase-shell/src/main/ruby/hbase/admin.rb
+++ b/hbase-shell/src/main/ruby/hbase/admin.rb
@@ -357,7 +357,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

Reply via email to