diff --git a/src/main/java/server/ChunkedCompressedChecksumFileReader.java b/src/main/java/server/ChunkedCompressedChecksumFileReader.java index 707536f..b27c77b 100644 --- a/src/main/java/server/ChunkedCompressedChecksumFileReader.java +++ b/src/main/java/server/ChunkedCompressedChecksumFileReader.java @@ -30,6 +30,9 @@ public class ChunkedCompressedChecksumFileReader { public FileHeader readChunk(Tracer trace, Span sp) throws IOException { Span gf = trace.spanBuilder("Chunk Read").startSpan(); FileHeader header = readHeader(); + gf.setAttribute("Read Uncompressed", header.getUncompressed()); + gf.setAttribute("Read Compressed", header.getCompressed()); + gf.setAttribute("Read Hash", header.getHash()); try (Scope scope = gf.makeCurrent()) { if (header.getUncompressed() == 0) return header; diff --git a/src/main/java/shared/FileUtil.java b/src/main/java/shared/FileUtil.java index 9f8aaeb..b2a1c2d 100644 --- a/src/main/java/shared/FileUtil.java +++ b/src/main/java/shared/FileUtil.java @@ -19,7 +19,7 @@ import java.util.concurrent.TimeUnit; public class FileUtil { // do not change it breaks stuff - protected static final int READER_SIZE = 8192; + protected static final int READER_SIZE = 131072; public static final long SEED = 691; private static final LZ4Factory LZ_FACTORY = LZ4Factory.fastestInstance(); diff --git a/target/classes/client/ChunkedCompressedChecksumFileWriter.class b/target/classes/client/ChunkedCompressedChecksumFileWriter.class index 2cb0de6..18420d6 100644 Binary files a/target/classes/client/ChunkedCompressedChecksumFileWriter.class and b/target/classes/client/ChunkedCompressedChecksumFileWriter.class differ diff --git a/target/classes/server/ChunkedCompressedChecksumFileReader.class b/target/classes/server/ChunkedCompressedChecksumFileReader.class index 0336e4e..6acedb5 100644 Binary files a/target/classes/server/ChunkedCompressedChecksumFileReader.class and b/target/classes/server/ChunkedCompressedChecksumFileReader.class differ diff --git a/target/classes/shared/FileUtil$InvalidUsageException.class b/target/classes/shared/FileUtil$InvalidUsageException.class index 8c157cd..f5f0dc4 100644 Binary files a/target/classes/shared/FileUtil$InvalidUsageException.class and b/target/classes/shared/FileUtil$InvalidUsageException.class differ diff --git a/target/classes/shared/FileUtil.class b/target/classes/shared/FileUtil.class index bcaf31f..4a1e8e0 100644 Binary files a/target/classes/shared/FileUtil.class and b/target/classes/shared/FileUtil.class differ