Github user bhaisaab commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1247#discussion_r48020023
  
    --- Diff: engine/schema/src/com/cloud/upgrade/DatabaseUpgradeChecker.java 
---
    @@ -242,13 +243,13 @@ public DatabaseUpgradeChecker() {
     
             _upgradeMap.put("4.5.2", new DbUpgrade[] {new Upgrade452to460(), 
new Upgrade460to461(), new Upgrade461to470()});
     
    -        _upgradeMap.put("4.5.3", new DbUpgrade[] {new Upgrade453to460()});
    +        _upgradeMap.put("4.5.3", new DbUpgrade[] {new Upgrade453to460(), 
new Upgrade460to461(), new Upgrade461to470()});
     
             _upgradeMap.put("4.6.0", new DbUpgrade[] {new Upgrade460to461(), 
new Upgrade461to470()});
     
             _upgradeMap.put("4.6.1", new DbUpgrade[] {new Upgrade461to470()});
     
    -        _upgradeMap.put("4.6.2", new DbUpgrade[] {new Upgrade461to470()});
    +        _upgradeMap.put("4.6.2", new DbUpgrade[] {new Upgrade462to470()});
    --- End diff --
    
    I've explained the reason in detail on dev@. The upgrade path used for 
4.6.2 version (source) is Upgrade461to470 that assumes from version 4.6.1 to 
4.7.0 in getUpgradableVersionRange(). The fix tries to be consistent with the 
semantics followed in writing/using upgrade paths. Till upgrade process changes 
and new tools are introduced, I would like to be consistent with the pattern 
we've here.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to