geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jinmeil...@apache.org
Subject [26/36] incubator-geode git commit: GEODE-1184: Removed misplaced System.out and renamed methods
Date Fri, 08 Apr 2016 16:26:44 GMT
GEODE-1184: Removed misplaced System.out and renamed methods


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/7413804d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/7413804d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/7413804d

Branch: refs/heads/feature/GEODE-17-2
Commit: 7413804dec6acc1077618d50459e07200ced8336
Parents: 36cb06e
Author: Jason Huynh <huynhja@gmail.com>
Authored: Mon Apr 4 15:03:28 2016 -0700
Committer: Jason Huynh <huynhja@gmail.com>
Committed: Wed Apr 6 16:51:16 2016 -0700

----------------------------------------------------------------------
 .../LuceneFunctionReadPathDUnitTest.java           | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/7413804d/geode-lucene/src/test/java/com/gemstone/gemfire/cache/lucene/internal/distributed/LuceneFunctionReadPathDUnitTest.java
----------------------------------------------------------------------
diff --git a/geode-lucene/src/test/java/com/gemstone/gemfire/cache/lucene/internal/distributed/LuceneFunctionReadPathDUnitTest.java
b/geode-lucene/src/test/java/com/gemstone/gemfire/cache/lucene/internal/distributed/LuceneFunctionReadPathDUnitTest.java
index 901b363..f6fcf8a 100644
--- a/geode-lucene/src/test/java/com/gemstone/gemfire/cache/lucene/internal/distributed/LuceneFunctionReadPathDUnitTest.java
+++ b/geode-lucene/src/test/java/com/gemstone/gemfire/cache/lucene/internal/distributed/LuceneFunctionReadPathDUnitTest.java
@@ -79,9 +79,9 @@ public class LuceneFunctionReadPathDUnitTest extends CacheTestCase {
 
   private void e2eTextSearchForRegionType(RegionShortcut type) {
     final String regionName = type.toString();
-    createPartitionRegionAndIndex(server1, regionName, type);
+    createRegionAndIndex(server1, regionName, type);
     putDataInRegion(server1, regionName);
-    createPartitionRegionAndIndex(server2, regionName, type);
+    createRegionAndIndex(server2, regionName, type);
     // Make sure we can search from both members
     executeTextSearch(server1, regionName);
     executeTextSearch(server2, regionName);
@@ -90,7 +90,7 @@ public class LuceneFunctionReadPathDUnitTest extends CacheTestCase {
     // Make sure the search still works
     executeTextSearch(server1, regionName);
     executeTextSearch(server2, regionName);
-    destroyRegion(server2, regionName);
+    destroyPartitionRegion(server2, regionName);
   }
 
   private void rebalanceRegion(VM vm) {
@@ -157,8 +157,8 @@ public class LuceneFunctionReadPathDUnitTest extends CacheTestCase {
     vm.invoke(createSomeData);
   }
 
-  private void createPartitionRegionAndIndex(VM vm, final String regionName, final RegionShortcut
type) {
-    SerializableCallable<Object> createPartitionRegion = new SerializableCallable<Object>("createRegionAndIndex")
{
+  private void createRegionAndIndex(VM vm, final String regionName, final RegionShortcut
type) {
+    SerializableCallable<Object> createRegion = new SerializableCallable<Object>("createRegionAndIndex")
{
       private static final long serialVersionUID = 1L;
 
       public Object call() throws Exception {
@@ -168,7 +168,6 @@ public class LuceneFunctionReadPathDUnitTest extends CacheTestCase {
         service.createIndex(INDEX_NAME, regionName, "text");
         RegionFactory<Object, Object> regionFactory = cache.createRegionFactory(type);
         if (regionName.contains("OVERFLOW")) {
-          System.out.println("yello");
           EvictionAttributesImpl evicAttr = new EvictionAttributesImpl().setAction(EvictionAction.OVERFLOW_TO_DISK);
           evicAttr.setAlgorithm(EvictionAlgorithm.LRU_ENTRY).setMaximum(1);
           regionFactory.setEvictionAttributes(evicAttr);
@@ -177,11 +176,11 @@ public class LuceneFunctionReadPathDUnitTest extends CacheTestCase {
         return null;
       }
     };
-    vm.invoke(createPartitionRegion);
+    vm.invoke(createRegion);
   }
 
-  private void destroyRegion(VM vm, final String regionName) {
-    SerializableCallable<Object> createPartitionRegion = new SerializableCallable<Object>("destroyRegion")
{
+  private void destroyPartitionRegion(VM vm, final String regionName) {
+    SerializableCallable<Object> createPartitionRegion = new SerializableCallable<Object>("destroyPartitionRegion")
{
       private static final long serialVersionUID = 1L;
 
       public Object call() throws Exception {


Mime
View raw message