-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/26937/
-----------------------------------------------------------
Review request for Ambari, Jonathan Hurley and Nate Cole.
Bugs: AMBARI-7866
https://issues.apache.org/jira/browse/AMBARI-7866
Repository: ambari
Description
-------
*STR:*
# Deployed cluster with all services (1.6.1).
# Enabled security.
# Upgraded cluster to 1.7.0.
# Tried to create new group.
*Result:* Error message appeared:
{noformat}Exception [EclipseLink-4002] (Eclipse Persistence Services -
2.4.0.v20120608-r11652):
org.eclipse.persistence.exceptions.DatabaseException Internal Exception:
java.sql.BatchUpdateException:
Batch entry 0 INSERT INTO groups (group_id, group_name, ldap_group,
principal_id) VALUES (4, 't7vyoy', 0, 506) was aborted.
Call getNextException to see the cause.
Error Code: 0
Call: INSERT INTO groups (group_id, group_name, ldap_group, principal_id)
VALUES (?, ?, ?, ?) bind => [4 parameters bound]{noformat}
Diffs
-----
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog170.java
a387cb9
ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog170Test.java
3271864
Diff: https://reviews.apache.org/r/26937/diff/
Testing
-------
Added new assertions to existing upgrade unit tests. All tests pass ...
Results :
Tests run: 2183, Failures: 0, Errors: 0, Skipped: 17
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 34:27.254s
[INFO] Finished at: Mon Oct 20 12:01:09 EDT 2014
[INFO] Final Memory: 29M/246M
[INFO] ------------------------------------------------------------------------
Thanks,
Tom Beerbower