[
https://issues.apache.org/jira/browse/AMBARI-21806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16141626#comment-16141626
]
Hudson commented on AMBARI-21806:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #7939 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/7939/])
AMBARI-21806 - Repository Entities Which Can't Be Removed Should Be (jhurley:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=8b133e499ebf9b1596ac835a1250ff8c4e904b0e])
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog260Test.java
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/RepositoryVersionEntity.java
* (edit) ambari-server/src/main/resources/Ambari-DDL-Derby-CREATE.sql
* (edit) ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql
* (edit) ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
* (edit) ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java
* (edit) ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
* (edit) ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProvider.java
> Repository Entities Which Can't Be Removed Should Be Hide-able
> --------------------------------------------------------------
>
> Key: AMBARI-21806
> URL: https://issues.apache.org/jira/browse/AMBARI-21806
> Project: Ambari
> Issue Type: Task
> Affects Versions: 2.6.0
> Reporter: Jonathan Hurley
> Assignee: Jonathan Hurley
> Priority: Critical
> Fix For: 2.6.0
>
> Attachments: AMBARI-21806.patch
>
>
> Many tables have begun referencing {{repo_version}} since a simple
> {{version}} string is no longer sufficient to properly identify a repository.
> However, we allow a {{RepsitoryVersionEntity}} to be removed if it is in the
> following states:
> - {{INIT}}
> - {{INSTALL_FAILED}}
> - {{OUT_OF_SYNC}}
> The issue with removing the entities is that this would also force us to
> remove things like upgrades, service component versions, etc. Here are some
> options:
> # Allow repository versions in {{INIT}} and {{INSTALL_FAILED}} to be removed,
> but for other states we'd need to keep it in the DB for history and perhaps
> add a {{hidden}} column. This would keep the referential integrity.
> # Allow the removal of repository versions, but warn that it will also remove
> things like upgrades.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)