-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62259/
-----------------------------------------------------------
(Updated Sept. 18, 2017, 5:36 p.m.)
Review request for Ambari, Attila Doroszlai, Dmytro Grinenko, Jonathan Hurley,
Jayush Luniya, Myroslav Papirkovskyy, and Vitalyi Brodetskyi.
Changes
-------
Removed special handling for MySQL to fallback to LONGTEXT solumn type mapping.
Bugs: AMBARI-21942
https://issues.apache.org/jira/browse/AMBARI-21942
Repository: ambari
Description
-------
Basically the problem here happens when Ambari is attempting to insert
into the following upgrade_itme:item_text table:column,
INSERT INTO upgrade_item (upgrade_item_id, hosts, item_text, stage_id,
state, tasks, upgrade_group_id) VALUES (?, ?, ?, ?, ?, ?, ?)
The message string for SOLR includes all the SOLR node hostnames whose combined
string length exceeds the column length defined for "item_text" of 1024
characters.
Diffs
-----
ambari-server/src/main/java/org/apache/ambari/server/orm/DBAccessorImpl.java
9564934
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UpgradeItemEntity.java
35ea769
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java
9e145c0
ambari-server/src/main/resources/Ambari-DDL-Derby-CREATE.sql b9c6985
ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql c53cd7b
ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql 6f754bb
ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 19c0214
ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql 8567d09
ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql fdbad09
Diff: https://reviews.apache.org/r/62259/diff/1/
Testing
-------
Manually verified the upgrade resulted in expansion on PostgreSQL.
File Attachments (updated)
----------------
Removed MySQL special handling
https://reviews.apache.org/media/uploaded/files/2017/09/18/05ae5778-da1d-4ce6-971e-db5c639f2346__AMBARI-21942-2.patch
Thanks,
Sid Wagle