geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wireba...@apache.org
Subject [geode-benchmarks] branch gcpscaletest updated: recreating valuemap for every prepopulate batch
Date Fri, 21 Dec 2018 18:43:15 GMT
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 95b4c2e  recreating valuemap for every prepopulate batch
95b4c2e is described below

commit 95b4c2e63ff103b9687374bbff2dcf34f0bed513
Author: Brian Rowe <browe@pivotal.io>
AuthorDate: Fri Dec 21 10:42:43 2018 -0800

    recreating valuemap for every prepopulate batch
---
 .../main/java/org/apache/geode/benchmark/tasks/PrePopulateRegion.java  | 3 +--
 .../java/org/apache/geode/benchmark/tests/PartitionedGetBenchmark.java | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

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 bae2237..cce2973 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,12 +126,11 @@ 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();
       }
     }
 
diff --git a/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tests/PartitionedGetBenchmark.java
b/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tests/PartitionedGetBenchmark.java
index f958f0f..4d80560 100644
--- a/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tests/PartitionedGetBenchmark.java
+++ b/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tests/PartitionedGetBenchmark.java
@@ -17,7 +17,6 @@
 
 package org.apache.geode.benchmark.tests;
 
-
 import static org.apache.geode.benchmark.topology.ClientServerTopology.Roles.CLIENT;
 import static org.apache.geode.benchmark.topology.ClientServerTopology.Roles.SERVER;
 


Mime
View raw message