ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-12333) Unit Test UpgradeResourceProviderTest.testCreatePartialDowngrade Is Failing
Date Wed, 08 Jul 2015 14:51:04 GMT
Jonathan Hurley created AMBARI-12333:
----------------------------------------

             Summary: Unit Test UpgradeResourceProviderTest.testCreatePartialDowngrade Is
Failing
                 Key: AMBARI-12333
                 URL: https://issues.apache.org/jira/browse/AMBARI-12333
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.1.0
            Reporter: Jonathan Hurley
            Assignee: Jonathan Hurley
            Priority: Blocker
             Fix For: 2.1.0


this patch cause unit-test to be failing:
{code}
Results :

Tests in error: 
  UpgradeResourceProviderTest.testCreatePartialDowngrade:428 ? NullPointer

Tests run: 3111, Failures: 0, Errors: 1, Skipped: 28

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Ambari Views ...................................... SUCCESS [6.409s]
[INFO] Ambari Metrics Common ............................. SUCCESS [3.909s]
[INFO] Ambari Server ..................................... FAILURE [1:16:42.534s]
[INFO] Ambari Agent ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:16:57.150s
[INFO] Finished at: Wed Jul 08 10:34:40 UTC 2015
[INFO] Final Memory: 39M/826M
[INFO] ------------------------------------------------------------------------
{code}

Short debugging shows, that error is in UpgradeResourceProvider.java: 
{code}
        UpgradeEntity lastUpgradeItemForCluster = s_upgradeDAO.findLastUpgradeForCluster(cluster.getClusterId());
        ctx.setDowngradeFromVersion(lastUpgradeItemForCluster.getToVersion());
{code}
{{lastUpgradeItemForCluster}} is null




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message