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

This commit is contained in:
tedyu 2016-07-12 00:15:26 -07:00
parent ccf293d7fb
commit 7227c27fe8
1 changed files with 1 additions and 0 deletions

View File

@ -722,6 +722,7 @@ module Hbase
rSinkString = " SINK :" rSinkString = " SINK :"
rSourceString = " SOURCE:" rSourceString = " SOURCE:"
rLoadSink = sl.getReplicationLoadSink() rLoadSink = sl.getReplicationLoadSink()
next if rLoadSink == nil
rSinkString << " AgeOfLastAppliedOp=" + rLoadSink.getAgeOfLastAppliedOp().to_s rSinkString << " AgeOfLastAppliedOp=" + rLoadSink.getAgeOfLastAppliedOp().to_s
rSinkString << ", TimeStampsOfLastAppliedOp=" + rSinkString << ", TimeStampsOfLastAppliedOp=" +
(java.util.Date.new(rLoadSink.getTimeStampsOfLastAppliedOp())).toString() (java.util.Date.new(rLoadSink.getTimeStampsOfLastAppliedOp())).toString()