This is an automated email from the ASF dual-hosted git repository.
boglesby pushed a commit to branch feature/GEODE-5145
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/feature/GEODE-5145 by this
push:
new d9d691f GEODE-5145: Updated to version 1.8
d9d691f is described below
commit d9d691f77571180c8098c48a7078bc279b429e98
Author: Barry Oglesby <[email protected]>
AuthorDate: Thu Jul 12 16:51:17 2018 -0700
GEODE-5145: Updated to version 1.8
---
.../apache/geode/cache/lucene/internal/cli/LuceneIndexCommands.java | 6 +++---
.../cache/lucene/internal/cli/LuceneIndexCommandsJUnitTest.java | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git
a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/cli/LuceneIndexCommands.java
b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/cli/LuceneIndexCommands.java
index f6b6c41..69f0d89 100755
---
a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/cli/LuceneIndexCommands.java
+++
b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/cli/LuceneIndexCommands.java
@@ -288,13 +288,13 @@ public class LuceneIndexCommands extends
InternalGfshCommand {
authorize(Resource.CLUSTER, Operation.MANAGE, LucenePermission.TARGET);
- // Get members >= 1.7
+ // Get members >= Geode 1.8 (when the new destroy code path went into the
product)
Set<DistributedMember> validVersionMembers =
- getNormalMembersWithSameOrNewerVersion(Version.GEODE_170);
+ getNormalMembersWithSameOrNewerVersion(Version.GEODE_180);
if (validVersionMembers.isEmpty()) {
return ResultBuilder.createInfoResult(CliStrings.format(
LuceneCliStrings.LUCENE_DESTROY_INDEX__MSG__COULD_NOT_FIND__MEMBERS_GREATER_THAN_VERSION_0,
- Version.GEODE_170));
+ Version.GEODE_180));
}
// Execute the destroy index function
diff --git
a/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/cli/LuceneIndexCommandsJUnitTest.java
b/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/cli/LuceneIndexCommandsJUnitTest.java
index b5ef074..6015dad 100644
---
a/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/cli/LuceneIndexCommandsJUnitTest.java
+++
b/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/cli/LuceneIndexCommandsJUnitTest.java
@@ -435,7 +435,7 @@ public class LuceneIndexCommandsJUnitTest {
final List<CliFunctionResult> cliFunctionResults = new ArrayList<>();
String expectedStatus = CliStrings.format(
LuceneCliStrings.LUCENE_DESTROY_INDEX__MSG__COULD_NOT_FIND__MEMBERS_GREATER_THAN_VERSION_0,
- new Object[] {Version.GEODE_170}) + LINE_SEPARATOR;
+ new Object[] {Version.GEODE_180}) + LINE_SEPARATOR;
cliFunctionResults.add(new CliFunctionResult("member0"));
doReturn(Collections.emptySet()).when(commands).getNormalMembersWithSameOrNewerVersion(any());
CommandResult result = (CommandResult) commands.destroyIndex("index",
"regionPath");
@@ -485,7 +485,7 @@ public class LuceneIndexCommandsJUnitTest {
final List<CliFunctionResult> cliFunctionResults = new ArrayList<>();
String expectedStatus = CliStrings.format(
LuceneCliStrings.LUCENE_DESTROY_INDEX__MSG__COULD_NOT_FIND__MEMBERS_GREATER_THAN_VERSION_0,
- new Object[] {Version.GEODE_170}) + LINE_SEPARATOR;
+ new Object[] {Version.GEODE_180}) + LINE_SEPARATOR;
cliFunctionResults.add(new CliFunctionResult("member0"));
CommandResult result = (CommandResult) commands.destroyIndex(null,
"regionPath");
verifyDestroyIndexCommandResult(result, cliFunctionResults,
expectedStatus);