Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void testBlockIDReturned() throws IOException {

@Test
public void testReadDataByteBufferMultipleStripes() throws IOException {
int readBufferSize = random.nextInt(4096);
int readBufferSize = 4096;
// 3 stripes and a partial chunk
int blockLength = repConfig.getEcChunkSize() * repConfig.getData() * 3
+ repConfig.getEcChunkSize() - 1;
Expand Down Expand Up @@ -155,7 +155,7 @@ public void testReadDataByteBufferMultipleStripes() throws IOException {
@Test
public void testReadDataWithUnbuffer() throws IOException {
// Read buffer is 16kb + 5 bytes so it does not align with stripes exactly
int readBufferSize = random.nextInt(1024 * 16 + 5);
int readBufferSize = 1024 * 16 + 5;
// 3 stripes and a partial chunk
int blockLength = repConfig.getEcChunkSize() * repConfig.getData() * 3
+ repConfig.getEcChunkSize() - 1;
Expand Down