[
https://issues.apache.org/jira/browse/AMBARI-15919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15257998#comment-15257998
]
Hudson commented on AMBARI-15919:
---------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #4738 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/4738/])
AMBARI-15919. Migrate instance specific data from one version to
(dipayan.bhowmick:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=614b12fc382fee77b63f253926bab6aa359ae5df])
* ambari-views/examples/favorite-view/pom.xml
*
ambari-server/src/test/java/org/apache/ambari/server/api/services/ViewDataMigrationServiceTest.java
* ambari-views/examples/hello-spring-view/pom.xml
* ambari-views/examples/phone-list-upgrade-view/docs/index.md
* pom.xml
* ambari-views/examples/hello-servlet-view/pom.xml
* ambari-views/examples/cluster-view/pom.xml
*
ambari-views/src/main/java/org/apache/ambari/view/migration/ViewDataMigrator.java
* ambari-views/src/main/resources/view.xsd
* ambari-views/examples/property-validator-view/pom.xml
*
ambari-views/examples/phone-list-upgrade-view/src/main/resources/WEB-INF/web.xml
* ambari-server/src/main/java/org/apache/ambari/server/orm/dao/PrivilegeDAO.java
* ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java
* ambari-views/examples/simple-view/pom.xml
*
ambari-views/examples/phone-list-upgrade-view/src/main/java/org/apache/ambari/view/phonelist/PhoneListServlet.java
* ambari-views/examples/weather-view/pom.xml
* ambari-views/examples/calculator-view/pom.xml
* ambari-views/examples/property-view/pom.xml
* ambari-views/examples/pom.xml
* ambari-views/examples/restricted-view/pom.xml
* ambari-views/examples/phone-list-view/pom.xml
*
ambari-server/src/test/java/org/apache/ambari/server/orm/entities/ViewInstanceEntityTest.java
*
ambari-views/examples/phone-list-upgrade-view/src/main/java/org/apache/ambari/view/phonelist/PhoneUser.java
*
ambari-views/src/main/java/org/apache/ambari/view/migration/EntityConverter.java
*
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java
*
ambari-server/src/main/java/org/apache/ambari/server/view/ViewDataMigrationContextImpl.java
*
ambari-views/src/main/java/org/apache/ambari/view/migration/ViewDataMigrationException.java
* ambari-views/examples/helloworld-view/pom.xml
* ambari-views/src/main/java/org/apache/ambari/view/validation/Validator.java
*
ambari-server/src/main/java/org/apache/ambari/server/api/services/ViewDataMigrationService.java
*
ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ViewConfig.java
* ambari-views/examples/phone-list-upgrade-view/pom.xml
*
ambari-views/src/main/java/org/apache/ambari/view/migration/ViewDataMigrationContext.java
*
ambari-server/src/main/java/org/apache/ambari/server/api/services/ViewInstanceService.java
*
ambari-server/src/test/java/org/apache/ambari/server/view/configuration/ViewConfigTest.java
* ambari-views/examples/phone-list-upgrade-view/src/main/resources/view.xml
*
ambari-views/examples/phone-list-upgrade-view/src/main/java/org/apache/ambari/view/phonelist/DataMigrator.java
* ambari-views/examples/README.md
*
ambari-server/src/test/java/org/apache/ambari/server/view/ViewDataMigrationContextImplTest.java
> Migrate instance specific data from one version to another.
> -----------------------------------------------------------
>
> Key: AMBARI-15919
> URL: https://issues.apache.org/jira/browse/AMBARI-15919
> Project: Ambari
> Issue Type: Bug
> Components: ambari-views
> Affects Versions: 2.4.0
> Reporter: Gaurav Nagar
> Assignee: Gaurav Nagar
> Fix For: 2.4.0
>
> Attachments: AMBARI-15919_trunk.patch
>
>
> It is critical that we provide a way to migrate instance data and view data
> information between versions of views. We need to support the following use
> case:
> - New version of view is instantiated. Since instance specific data will not
> be available to the new instance of the view (if the version has changed),
> there needs to be a way of migrating existing information over to the new
> view instance.
> - The Ambari view framework needs to provide a facility to invoke call back
> handlers (of sorts) to allow the view itself to handle the migration from and
> older version to the current version.
> An example...
> After a view instance (X1) is created (say from XView 1.0.0), a view might
> use instance data and/or datastore data. When a new view is released (say
> from XView 2.0.0), an ambari admin will want to create a new instance (X2)
> and migrate the data from the existing instance (X1). Ambari should provide a
> mechanism to perform this migration.
> 1) The ambari admin creates new instance X2 in the admin interface.
> 2) The ambari admin can select to migrate data from an existing instance.
> 3) The ambari admin initiates the migration of instance and datastore. The
> ambari views framework starts the processing of instance + datastore data
> movement (copying) to the new X2 instance scope.
> 4) The framework should call into a hook in the view in case any changes are
> needed to the X1 info before they saved in the new X2 instance.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)