ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-12333) Unit Test UpgradeResourceProviderTest.testCreatePartialDowngrade Is Failing
Date Wed, 08 Jul 2015 17:20:05 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-12333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14618968#comment-14618968
] 

Hudson commented on AMBARI-12333:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #3076 (See [https://builds.apache.org/job/Ambari-trunk-Commit/3076/])
AMBARI-12333 - Unit Test UpgradeResourceProviderTest.testCreatePartialDowngrade Is Failing
(jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=197c8479301c83a36c2aa69afac4207d01f5a5e4)
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java


> 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