hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-16184 Shell test fails due to rLoadSink being nil (Phil Yang)
Date Tue, 12 Jul 2016 07:15:33 GMT
Repository: hbase
Updated Branches:
  refs/heads/master ccf293d7f -> 7227c27fe


HBASE-16184 Shell test fails due to rLoadSink being nil (Phil Yang)


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

Branch: refs/heads/master
Commit: 7227c27fe84fe9ca8f6ed1db7151fb96bd58de46
Parents: ccf293d
Author: tedyu <yuzhihong@gmail.com>
Authored: Tue Jul 12 00:15:26 2016 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Tue Jul 12 00:15:26 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/7227c27f/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 5f04d1d..c6e6f48 100644
--- a/hbase-shell/src/main/ruby/hbase/admin.rb
+++ b/hbase-shell/src/main/ruby/hbase/admin.rb
@@ -722,6 +722,7 @@ module Hbase
           rSinkString   = "       SINK  :"
           rSourceString = "       SOURCE:"
           rLoadSink = sl.getReplicationLoadSink()
+          next if rLoadSink == nil
           rSinkString << " AgeOfLastAppliedOp=" + rLoadSink.getAgeOfLastAppliedOp().to_s
           rSinkString << ", TimeStampsOfLastAppliedOp=" +
               (java.util.Date.new(rLoadSink.getTimeStampsOfLastAppliedOp())).toString()


Mime
View raw message