) throws DataCorruptionException, IOException { if(chunkSize > dataIoTask.getMarkedRangesSize() - countBytesDone) { throw new DataSizeException( dataIoTask.getMarkedRangesSize(), countBytesDone + chunkSize );
ioTask.setStatus(Status.RESP_FAIL_CORRUPT); final long countBytesDone = ioTask.getCountBytesDone() + e.getOffset(); ioTask.setCountBytesDone(countBytesDone); Loggers.MSG.debug(
final int n = srcChannel.read(inBuff); if(n < 0) { throw new DataSizeException(contentSize, countBytesDone); } else { inBuff.flip(); final int n = srcChannel.read(inBuff); if(n < 0) { throw new DataSizeException(contentSize, countBytesDone); } else { inBuff.flip();
final long countBytesDone = ioTask.getCountBytesDone() + e.getOffset(); ioTask.setCountBytesDone(countBytesDone); Loggers.MSG.debug("{}: content size mismatch, expected: {}, actual: {}", item.getName(),
throw new DataSizeException(contentSize, countBytesDone); } else { countBytesDone += n; throw new DataSizeException(contentSize, countBytesDone);
throw new DataSizeException( dataIoTask.getMarkedRangesSize(), countBytesDone + chunkSize );
} else { if(chunkSize > item.size() - countBytesDone) { throw new DataSizeException(item.size(), countBytesDone + chunkSize);
final int n = srcChannel.read(inBuff); if(n < 0) { throw new DataSizeException(rangesSizeSum, countBytesDone); } else { inBuff.flip();
dataIoTask.setCurrRangeIdx(currRangeIdx); } else { throw new DataSizeException(item.size(), countBytesDone + chunkSize);