ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nate Cole" <nc...@hortonworks.com>
Subject Re: Review Request 27607: Rolling Upgrade Bootstrap - Create new tables and populate during the installation of a new cluster
Date Thu, 06 Nov 2014 13:18:40 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/27607/#review60156
-----------------------------------------------------------


Any tests available?


ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterEntity.java
<https://reviews.apache.org/r/27607/#comment101500>

    Some strange formatting here



ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterVersionEntity.java
<https://reviews.apache.org/r/27607/#comment101501>

    Jonathan indicated an _ should be used for readability



ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostComponentStateEntity.java
<https://reviews.apache.org/r/27607/#comment101502>

    DDL says "not null"



ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostComponentStateEntity.java
<https://reviews.apache.org/r/27607/#comment101503>

    formatting


- Nate Cole


On Nov. 5, 2014, 5:02 p.m., Alejandro Fernandez wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/27607/
> -----------------------------------------------------------
> 
> (Updated Nov. 5, 2014, 5:02 p.m.)
> 
> 
> Review request for Ambari, Dmitro Lisnichenko, Jonathan Hurley, Nate Cole, Sid Wagle,
and Yurii Shylov.
> 
> 
> Bugs: AMBARI-8148
>     https://issues.apache.org/jira/browse/AMBARI-8148
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> 1. Create new tables and populate during the installation of a new cluster.
> 
> *clusterversion* table
> Column    | Type       | Keys | Example
> ----------|------------|------|---------------------------------------------
> id        |BIGINT      |PK    |1
> cluster_id|BIGINT      |FK    |2
> stack     |VARCHAR(255)|      |HDP-2.2 
> version   |VARCHAR(255)|      |HDP-2-2.0.1-885 
> state     |VARCHAR(32) |      |INSTALLED, CURRENT, UPGRADING, UPGRADE_FAILED 
> start_time|DATETIME    |      |2014-10-31 14:00:00
> end_time  |DATETIME    |      |2014-10-31 15:00:00
> user_name |VARCHAR(32) |      |admin
> 
> *hostcomponentstate* table
> Add column upgrade_state VARCHAR(32) ("NONE" is the default, "UPGRADING", "UPGRADE_FAILED")
> 
> *hostversion* table
> Column   |Type        |Keys         |Example
> ---------|------------|-------------|----------------------------------
> id       |BIGINT      |PK           |1
> host_name|VARCHAR(255)|FK hosts.name|c6401.ambari.apache.org
> stack    |VARCHAR(255)|             |HDP-2.2
> version  |VARCHAR(255)|             |2.2.0.1-885
> state    |VARCHAR(32) |             |INSTALLED, CURRENT, NOT_INSTALLED
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterEntity.java
b030ea1 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterVersionEntity.java
PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostComponentStateEntity.java
7dce204 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostEntity.java a71fddb

>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostVersionEntity.java
PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/state/ClusterVersionState.java
PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/state/HostVersionState.java PRE-CREATION

>   ambari-server/src/main/java/org/apache/ambari/server/state/ServiceComponentHost.java
3718556 
>   ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostImpl.java
bc97936 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog200.java
14c385d 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 9054b3f 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql abe8b39 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 0bea067 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql ebc8f5c 
>   ambari-server/src/main/resources/META-INF/persistence.xml 2d8fedb 
>   ambari-server/src/test/python/TestAmbariServer.py c3651eb 
> 
> Diff: https://reviews.apache.org/r/27607/diff/
> 
> 
> Testing
> -------
> 
> Ran unit tests
> 
> ambari-server unit tests
> ----------------------------------------------------------------------
> Total run:684
> Total errors:0
> Total failures:0
> OK
> 
> 
> Thanks,
> 
> Alejandro Fernandez
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message