GEODE-6233: Use a new hash-map for each PutAll batch in PrePopulateRegion (#31)
authorBrian Rowe <browe@pivotal.io>
Fri, 21 Dec 2018 22:10:14 +0000 (14:10 -0800)
committerGitHub <noreply@github.com>
Fri, 21 Dec 2018 22:10:14 +0000 (14:10 -0800)
commit0d18cbd6502a235d1797d2097da3750d6269f013
treebd84a3b22930756b098fe27a28be5a0bf86292b8
parent46b2653c605b487389399d6a6293cb59c32a0633
GEODE-6233: Use a new hash-map for each PutAll batch in PrePopulateRegion (#31)

We see an occasional delay/hang when simply clearing and reusing the same
hashmap for multiple putAll requests.  This change creates a new hashmap every
time it starts a new batch.

This also increases the keyRange for the benchmarks from 10k to 1M.

Co-Authored-By: Helena Bales <hbales@pivotal.io>
geode-benchmarks/src/main/java/org/apache/geode/benchmark/tasks/PrePopulateRegion.java
geode-benchmarks/src/main/java/org/apache/geode/benchmark/tests/PartitionedGetBenchmark.java
geode-benchmarks/src/main/java/org/apache/geode/benchmark/tests/PartitionedPutBenchmark.java
geode-benchmarks/src/main/java/org/apache/geode/benchmark/tests/ReplicatedGetBenchmark.java
geode-benchmarks/src/main/java/org/apache/geode/benchmark/tests/ReplicatedPutBenchmark.java