You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2016/07/12 07:15:33 UTC

hbase git commit: HBASE-16184 Shell test fails due to rLoadSink being nil (Phil Yang)

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 <yu...@gmail.com>
Authored: Tue Jul 12 00:15:26 2016 -0700
Committer: tedyu <yu...@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()