You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by zh...@apache.org on 2017/09/22 17:33:33 UTC
[geode] branch feature/GEODE-3606 updated: GEODE-3606: remove
test-only code
This is an automated email from the ASF dual-hosted git repository.
zhouxj pushed a commit to branch feature/GEODE-3606
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/feature/GEODE-3606 by this push:
new 82f2abe GEODE-3606: remove test-only code
82f2abe is described below
commit 82f2abe57d2cc4643ee41572054bbfa9612cf578
Author: zhouxh <gz...@pivotal.io>
AuthorDate: Fri Sep 22 10:33:00 2017 -0700
GEODE-3606: remove test-only code
---
.../cache/lucene/internal/repository/IndexRepositoryImpl.java | 7 -------
.../internal/repository/IndexRepositoryImplPerformanceTest.java | 4 +++-
2 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/repository/IndexRepositoryImpl.java b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/repository/IndexRepositoryImpl.java
index e772d49..da1cb2e 100644
--- a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/repository/IndexRepositoryImpl.java
+++ b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/repository/IndexRepositoryImpl.java
@@ -59,13 +59,6 @@ public class IndexRepositoryImpl implements IndexRepository {
private static final Logger logger = LogService.getLogger();
- // For test purposes
- IndexRepositoryImpl(Region<?, ?> region, IndexWriter writer, LuceneSerializer serializer,
- LuceneIndexStats stats, Region<?, ?> userRegion) throws IOException {
- this(region, writer, serializer, stats, userRegion,
- ((DistributedRegion) region).getLockService(), "NoLockFile", null);
- }
-
public IndexRepositoryImpl(Region<?, ?> region, IndexWriter writer, LuceneSerializer serializer,
LuceneIndexStats stats, Region<?, ?> userRegion, DistributedLockService lockService,
String lockName, LuceneIndex index) throws IOException {
diff --git a/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/repository/IndexRepositoryImplPerformanceTest.java b/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/repository/IndexRepositoryImplPerformanceTest.java
index a591cd9..d0b2a91 100644
--- a/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/repository/IndexRepositoryImplPerformanceTest.java
+++ b/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/repository/IndexRepositoryImplPerformanceTest.java
@@ -66,6 +66,7 @@ import org.apache.geode.cache.lucene.internal.directory.RegionDirectory;
import org.apache.geode.cache.lucene.internal.distributed.TopEntriesCollector;
import org.apache.geode.cache.lucene.internal.filesystem.FileSystemStats;
import org.apache.geode.cache.lucene.internal.repository.serializer.HeterogeneousLuceneSerializer;
+import org.apache.geode.internal.cache.DistributedRegion;
import org.apache.geode.test.junit.categories.PerformanceTest;
@@ -120,7 +121,8 @@ public class IndexRepositoryImplPerformanceTest {
writer = new IndexWriter(dir, config);
String[] indexedFields = new String[] {"text"};
HeterogeneousLuceneSerializer mapper = new HeterogeneousLuceneSerializer();
- repo = new IndexRepositoryImpl(fileAndChunkRegion, writer, mapper, stats, null);
+ repo = new IndexRepositoryImpl(fileAndChunkRegion, writer, mapper, stats, null,
+ ((DistributedRegion) fileAndChunkRegion).getLockService(), "NoLockFile", null);
}
@Override
--
To stop receiving notification emails like this one, please contact
['"commits@geode.apache.org" <co...@geode.apache.org>'].