From 7227c27fe84fe9ca8f6ed1db7151fb96bd58de46 Mon Sep 17 00:00:00 2001 From: tedyu Date: Tue, 12 Jul 2016 00:15:26 -0700 Subject: [PATCH] HBASE-16184 Shell test fails due to rLoadSink being nil (Phil Yang) --- hbase-shell/src/main/ruby/hbase/admin.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/hbase-shell/src/main/ruby/hbase/admin.rb b/hbase-shell/src/main/ruby/hbase/admin.rb index 5f04d1da069..c6e6f484fd9 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()