code: 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()));
      }
    }
docs: Validates a read request.
  
  @param request the block read request
  @throws InvalidArgumentException if the request is invalid