fix item_count of ScrambledZipfianGenerator#4
Conversation
|
Hi, please let me know if I'm missing something! |
|
Thank you for the reply. As you shown in the source code L87 what I attached, $itemcount is reset to $max - $min + 1, which is passed to ZipfianGenerator(). Moreover, you can check this in YCSB-C source code. Please check the file below. |
In YCSB, the ZipfianGenerator is initialized with // ScrambledZipfianGenerator.java Line 35
public static final long ITEM_COUNT = 10000000000L;
// ScrambledZipfianGenerator.java Line 38
private final long min, max, itemcount;
// ScrambledZipfianGenerator.java Line 87-92
itemcount = this.max - this.min + 1;
if (zipfianconstant == USED_ZIPFIAN_CONSTANT) {
gen = new ZipfianGenerator(0, ITEM_COUNT, zipfianconstant, ZETAN);
} else {
gen = new ZipfianGenerator(0, ITEM_COUNT, zipfianconstant);
}
While I don't remember the details, I think I modified that part to make the |
|
Closed due to inactivity. |
Hello,
The generator_ of ScrambledZipfianGenerator is incorrectly initialized.
If $min and $max is declared in the constructor, the $item_count should be $max - $min + 1, not 10000000000LL.
You can check the original YCSB source code in the following link below.
(https://github.com/brianfrankcooper/YCSB/blob/master/core/src/main/java/site/ycsb/generator/ScrambledZipfianGenerator.java#L87)