private int checksum(CompressionMetadata.Chunk chunk) throws IOException { assert channel.position() == chunk.offset + chunk.length; checksumBytes.clear(); if (channel.read(checksumBytes) != checksumBytes.capacity()) throw new CorruptBlockException(getPath(), chunk); return checksumBytes.getInt(0); }
throw new CorruptBlockException(getPath(), chunk); throw new CorruptBlockException(getPath(), chunk, e); throw new CorruptBlockException(getPath(), chunk);
throw new CorruptBlockException(channel.filePath(), chunk); throw new CorruptBlockException(channel.filePath(), chunk); throw new CorruptBlockException(channel.filePath(), chunk, e);
throw new CorruptBlockException(channel.filePath(), chunk); throw new CorruptBlockException(channel.filePath(), chunk, e); if (channel.read(compressed, chunk.offset + chunk.length) != Integer.BYTES || compressed.getInt(0) != checksum) throw new CorruptBlockException(channel.filePath(), chunk);
throw new CorruptBlockException(channel.filePath(), chunk); throw new CorruptBlockException(channel.filePath(), chunk); throw new CorruptBlockException(channel.filePath(), chunk, e);
throw new CorruptBlockException(getPath(), chunkOffset, chunkSize, e); crcCheckBuffer.flip(); if (crcCheckBuffer.getInt() != (int) checksum.getValue()) throw new CorruptBlockException(getPath(), chunkOffset, chunkSize); throw new CorruptSSTableException(new CorruptBlockException(getPath(), chunkOffset, chunkSize), getPath());
throw new CorruptBlockException(getPath(), chunkOffset, chunkSize, e); crcCheckBuffer.flip(); if (crcCheckBuffer.getInt() != (int) checksum.getValue()) throw new CorruptBlockException(getPath(), chunkOffset, chunkSize); throw new CorruptSSTableException(new CorruptBlockException(getPath(), chunkOffset, chunkSize), getPath());
throw new CorruptBlockException(getPath(), chunkOffset, chunkSize, e); crcCheckBuffer.flip(); if (crcCheckBuffer.getInt() != (int) checksum.getValue()) throw new CorruptBlockException(getPath(), chunkOffset, chunkSize); throw new CorruptSSTableException(new CorruptBlockException(getPath(), chunkOffset, chunkSize), getPath());
throw new CorruptBlockException(channel.filePath(), chunk); throw new CorruptBlockException(channel.filePath(), chunk, e);
throw new CorruptBlockException(channel.filePath(), chunk); throw new CorruptBlockException(channel.filePath(), chunk, e);
throw new CorruptBlockException(channel.filePath(), chunk, e); if (channel.read(compressed, chunk.offset + chunk.length) != Integer.BYTES || compressed.getInt(0) != checksum) throw new CorruptBlockException(channel.filePath(), chunk);
throw new CorruptBlockException(channel.filePath(), chunk, e); throw new CorruptBlockException(channel.filePath(), chunk);
throw new CorruptBlockException(getPath(), chunkOffset, chunkSize); throw new CorruptBlockException(getPath(), chunkOffset, chunkSize); throw new CorruptSSTableException(new CorruptBlockException(getPath(), chunkOffset, chunkSize), getPath());