You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2021/07/07 16:46:50 UTC

[GitHub] [geode] DonalEvans commented on a change in pull request #6351: GEODE-7309: uplift lucene to 7.1.0

DonalEvans commented on a change in pull request #6351:
URL: https://github.com/apache/geode/pull/6351#discussion_r665543591



##########
File path: geode-lucene/src/upgradeTest/java/org/apache/geode/cache/lucene/LuceneSearchWithRollingUpgradeTestBase.java
##########
@@ -225,12 +224,33 @@ protected static ClientCache createClientCache(Properties systemProperties,
 
 
   void putSerializableObjectAndVerifyLuceneQueryResult(VM putter, String regionName,
+      boolean luceneVersionMismatch,
       int expectedRegionSize, int start, int end, VM... vms) throws Exception {
     // do puts
     putSerializableObject(putter, regionName, start, end);
 
     // verify present in others
-    verifyLuceneQueryResultInEachVM(regionName, expectedRegionSize, vms);
+
+    if (!luceneVersionMismatch) {
+      verifyLuceneQueryResultInEachVM(regionName, expectedRegionSize, vms);
+    }
+  }
+
+  public boolean hasLuceneVersionMismatch(Host host) {
+    for (VM vm : host.getAllVMs()) {
+      int currentVersionOrdinal = 0;
+      for (KnownVersion productVersion : KnownVersion.getAllVersions()) {
+        if (vm.getVersion().equals(productVersion.getName())) {
+          currentVersionOrdinal = productVersion.ordinal();
+        } else if (vm.getVersion().equals(VersionManager.CURRENT_VERSION)) {
+          currentVersionOrdinal = KnownVersion.CURRENT_ORDINAL;
+        }
+      }
+      if (currentVersionOrdinal < KnownVersion.GEODE_1_15_0.ordinal()) {
+        return true;
+      }
+    }
+    return false;

Review comment:
       I see, thanks for the explanation.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@geode.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org