Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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 @@ -70,7 +70,7 @@ public class HadoopDirTreeGenerator extends BaseFreonGenerator
"written in each directory. Full name --fileSize will be removed " +
"in later versions.",
defaultValue = "4096")
private int fileSizeInBytes;
private long fileSizeInBytes;

@Option(names = {"-b", "--buffer"},
description = "Size of buffer used to generated the file content.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class HadoopFsGenerator extends BaseFreonGenerator
@Option(names = {"-s", "--size"},
description = "Size of the generated files (in bytes)",
defaultValue = "10240")
private int fileSize;
private long fileSize;

@Option(names = {"--buffer"},
description = "Size of buffer used store the generated key content",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class StreamingGenerator extends BaseFreonGenerator
@CommandLine.Option(names = {"--size"},
description = "Size of the generated files.",
defaultValue = "104857600")
private int fileSize;
private long fileSize;

private static final String SUB_DIR_NAME = "dir1";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public void generateData(long index) throws Exception {
//loop to create multiple chunks per blocks
while (writtenBytes < getKeySize()) {
int currentChunkSize =
Math.min(getKeySize() - writtenBytes, chunkSize);
Math.min(getKeySize() - writtenBytes, chunkSize);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GeneratorDatanode only has whitespace change. Can you please omit it from the patch?

String chunkName = "chunk" + chunkIndex++;

final byte[] data = new byte[currentChunkSize];
Expand Down Expand Up @@ -366,4 +366,4 @@ private void writeChunk(
chunkManager.finishWriteChunks(container, new BlockData(blockId));
}

}
}