private boolean verifyUpgradePath(String minUpgradeVersion, String sourceVersion){
    if (null == minUpgradeVersion){
      return false;
    }

    return VersionUtils.compareVersions(sourceVersion, minUpgradeVersion) >= 0;
  }
Checks if source version meets minimal requirements for upgrade

@param minUpgradeVersion min allowed version for the upgrade, could be obtained via {@link #getMinimalUpgradeCatalogVersion()}
@param sourceVersion current version of the Database, which need to be upgraded

@return  true if upgrade is allowed or false if not
ambari-server/src/main/java/org/apache/ambari/server/upgrade/SchemaUpgradeHelper.java