You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by bb...@apache.org on 2021/05/07 21:03:07 UTC

[geode-native] branch develop updated: GEODE-9246: Fix large putAll with callBack (#803)

This is an automated email from the ASF dual-hosted git repository.

bbender pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git


The following commit(s) were added to refs/heads/develop by this push:
     new 72a84a6  GEODE-9246: Fix large putAll with callBack (#803)
72a84a6 is described below

commit 72a84a6aedaa68ce770652e946dce918ca2b7ac3
Author: Michael Martell <mm...@pivotal.io>
AuthorDate: Fri May 7 14:02:58 2021 -0700

    GEODE-9246: Fix large putAll with callBack (#803)
    
    - also reduce the size of the putAll
---
 cppcache/integration-test/CMakeLists.txt                            | 1 -
 cppcache/integration-test/ThinClientPutAllWithCallBack.hpp          | 4 ++--
 .../integration-test/testThinClientLargePutAllWithCallBackArg.cpp   | 6 ++++--
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/cppcache/integration-test/CMakeLists.txt b/cppcache/integration-test/CMakeLists.txt
index 04e896f..84ad66e 100644
--- a/cppcache/integration-test/CMakeLists.txt
+++ b/cppcache/integration-test/CMakeLists.txt
@@ -190,7 +190,6 @@ set_tests_properties(
     testThinClientHAMixedRedundancy
     testThinClientHAQueryFailover
     testThinClientLRUExpiration
-    testThinClientLargePutAllWithCallBackArg
     testThinClientLocatorFailover
     testThinClientMultiDS
     testThinClientPartitionResolver
diff --git a/cppcache/integration-test/ThinClientPutAllWithCallBack.hpp b/cppcache/integration-test/ThinClientPutAllWithCallBack.hpp
index 8034176..e139b1d 100644
--- a/cppcache/integration-test/ThinClientPutAllWithCallBack.hpp
+++ b/cppcache/integration-test/ThinClientPutAllWithCallBack.hpp
@@ -567,7 +567,7 @@ DUNIT_TASK_DEFINITION(CLIENT1, ExecuteLargePutAll)
     LOG("Do large PutAll");
     HashMapOfCacheable map0;
     map0.clear();
-    for (int i = 0; i < 100000; i++) {
+    for (int i = 0; i < 1000; i++) {
       char key0[50] = {0};
       char val0[2500] = {0};
       sprintf(key0, "key-%d", i);
@@ -587,7 +587,7 @@ END_TASK_DEFINITION
 DUNIT_TASK_DEFINITION(CLIENT2, VerifyLargePutAll)
   {
     LOG("Verify large PutAll");
-    for (int i = 0; i < 100000; i++) {
+    for (int i = 0; i < 1000; i++) {
       char key0[50] = {0};
       sprintf(key0, "key-%d", i);
       verifyCreated(regionNames[0], key0);
diff --git a/cppcache/integration-test/testThinClientLargePutAllWithCallBackArg.cpp b/cppcache/integration-test/testThinClientLargePutAllWithCallBackArg.cpp
index 40b0441..42c9712 100644
--- a/cppcache/integration-test/testThinClientLargePutAllWithCallBackArg.cpp
+++ b/cppcache/integration-test/testThinClientLargePutAllWithCallBackArg.cpp
@@ -19,8 +19,10 @@
 
 DUNIT_MAIN
   {
-    CALL_TASK(CreateServer1);
-    CALL_TASK(CreateServer2);
+    CALL_TASK(CreateLocator1);
+
+    CALL_TASK(CreateServer1_With_Locator_XML);
+    CALL_TASK(CreateServer2_With_Locator_XML);
 
     CALL_TASK(CreateClient1RegionsWithCachingWithConcurrencyCheck);
     CALL_TASK(CreateClient2Regions);