Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
2.1.0
-
None
Description
this patch cause unit-test to be failing:
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] ------------------------------------------------------------------------
Short debugging shows, that error is in UpgradeResourceProvider.java:
UpgradeEntity lastUpgradeItemForCluster = s_upgradeDAO.findLastUpgradeForCluster(cluster.getClusterId()); ctx.setDowngradeFromVersion(lastUpgradeItemForCluster.getToVersion());
lastUpgradeItemForCluster is null
Attachments
Issue Links
- links to