private boolean checkAndIsShouldRecover(TRowLock rowLock) throws IOException {
if (rowLock.getState() != TRowLockState.STABLE) {
if (rowLock.isSetExpiry() && rowLock.getExpiry() < System.currentTimeMillis()) {
return true;
}
throw new NotExpiredYetException("this row is unstable and not expired yet.");
}
return false;
}