private void validateReadRequest ( alluxio . grpc . ReadRequest request ) throws InvalidArgumentException { if ( request . getBlockId ( ) < 0 ) { throw new InvalidArgumentException ( String . format ( "Invalid blockId (%d) in read request." , request . getBlockId ( ) ) ) ; } if ( request . getOffset ( ) < 0 || request . getLength ( ) <= 0 ) { throw new InvalidArgumentException ( String . format ( "Invalid read bounds in read request %s." , request . toString ( ) ) ) ; } }
Validates a read request .