You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by bs...@apache.org on 2018/05/04 23:13:14 UTC

[geode] 01/01: GEODE-5182: add 1.6.0 as a backward-compatibility test version

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

bschuchardt pushed a commit to branch feature/GEODE-5182
in repository https://gitbox.apache.org/repos/asf/geode.git

commit 2a21fb2161ad5a11df4665b3320afa399514af6e
Author: Bruce Schuchardt <bs...@pivotal.io>
AuthorDate: Fri May 4 16:02:07 2018 -0700

    GEODE-5182: add 1.6.0 as a backward-compatibility test version
---
 geode-core/src/main/java/org/apache/geode/internal/Version.java  | 9 +++++++--
 .../geode/internal/cache/tier/sockets/CommandInitializer.java    | 1 +
 geode-old-versions/build.gradle                                  | 1 +
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/geode-core/src/main/java/org/apache/geode/internal/Version.java b/geode-core/src/main/java/org/apache/geode/internal/Version.java
index 3d7e4dc..f60e9bb 100644
--- a/geode-core/src/main/java/org/apache/geode/internal/Version.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/Version.java
@@ -56,7 +56,7 @@ public class Version implements Comparable<Version> {
   /** byte used as ordinal to represent this <code>Version</code> */
   private final short ordinal;
 
-  public static final int HIGHEST_VERSION = 85;
+  public static final int HIGHEST_VERSION = 90;
 
   private static final Version[] VALUES = new Version[HIGHEST_VERSION + 1];
 
@@ -215,13 +215,18 @@ public class Version implements Comparable<Version> {
   public static final Version GEODE_160 =
       new Version("GEODE", "1.6.0", (byte) 1, (byte) 6, (byte) 0, (byte) 0, GEODE_160_ORDINAL);
 
+  private static final byte GEODE_170_ORDINAL = 90;
+
+  public static final Version GEODE_170 =
+      new Version("GEODE", "1.7.0", (byte) 1, (byte) 7, (byte) 0, (byte) 0, GEODE_170_ORDINAL);
+
   /* NOTE: when adding a new version bump the ordinal by 5. Ordinals can be short ints */
 
   /**
    * This constant must be set to the most current version of the product. !!! NOTE: update
    * HIGHEST_VERSION when changing CURRENT !!!
    */
-  public static final Version CURRENT = GEODE_160;
+  public static final Version CURRENT = GEODE_170;
 
   /**
    * A lot of versioning code needs access to the current version's ordinal
diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/CommandInitializer.java b/geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/CommandInitializer.java
index bb666ac..08e76b7 100644
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/CommandInitializer.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/CommandInitializer.java
@@ -328,6 +328,7 @@ public class CommandInitializer {
     ALL_COMMANDS.put(Version.GEODE_140, commands);
     ALL_COMMANDS.put(Version.GEODE_150, commands);
     ALL_COMMANDS.put(Version.GEODE_160, commands);
+    ALL_COMMANDS.put(Version.GEODE_170, commands);
 
   }
 
diff --git a/geode-old-versions/build.gradle b/geode-old-versions/build.gradle
index 3fea08e..e01a048 100644
--- a/geode-old-versions/build.gradle
+++ b/geode-old-versions/build.gradle
@@ -96,4 +96,5 @@ task createGeodeClasspathsFile  {
   addOldVersion('test130', '1.3.0', true)
   addOldVersion('test140', '1.4.0', true)
   addOldVersion('test150', '1.5.0', true)
+  addOldVersion('test160', '1.6.0', true)
 }

-- 
To stop receiving notification emails like this one, please contact
bschuchardt@apache.org.