You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by wi...@apache.org on 2018/12/21 19:43:07 UTC
[geode-benchmarks] branch gcpscaletest updated: going back to
clearing valuemap
This is an automated email from the ASF dual-hosted git repository.
wirebaron pushed a commit to branch gcpscaletest
in repository https://gitbox.apache.org/repos/asf/geode-benchmarks.git
The following commit(s) were added to refs/heads/gcpscaletest by this push:
new 166923d going back to clearing valuemap
166923d is described below
commit 166923df18b348be3da9b13597977f430f63759a
Author: Brian Rowe <br...@pivotal.io>
AuthorDate: Fri Dec 21 11:42:54 2018 -0800
going back to clearing valuemap
---
.../main/java/org/apache/geode/benchmark/tasks/PrePopulateRegion.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tasks/PrePopulateRegion.java b/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tasks/PrePopulateRegion.java
index cce2973..bae2237 100644
--- a/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tasks/PrePopulateRegion.java
+++ b/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tasks/PrePopulateRegion.java
@@ -126,11 +126,12 @@ public class PrePopulateRegion implements Task {
Map<Long, Portfolio> valueMap = new HashMap<>();
for (long putIndex = lowBound; putIndex < highBound; putIndex++) {
// build a map of to put to the server
- valueMap = new HashMap<>();
+
valueMap.put(putIndex, new Portfolio(putIndex));
if (putIndex % getBatchSize() == 0) {
region.putAll(valueMap);
+ valueMap.clear();
}
}