You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2015/04/27 20:33:04 UTC
ambari git commit: AMBARI-10774. Unable to issue restart command,
host_id column in requestoperationlevel table requires NULLable
(alejandro)
Repository: ambari
Updated Branches:
refs/heads/trunk 6d737ddc6 -> 3a42dfa77
AMBARI-10774. Unable to issue restart command, host_id column in requestoperationlevel table requires NULLable (alejandro)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3a42dfa7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3a42dfa7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3a42dfa7
Branch: refs/heads/trunk
Commit: 3a42dfa7719bb213547ca78b4d3a48fff16e787a
Parents: 6d737dd
Author: Alejandro Fernandez <af...@hortonworks.com>
Authored: Mon Apr 27 11:09:50 2015 -0700
Committer: Alejandro Fernandez <af...@hortonworks.com>
Committed: Mon Apr 27 11:32:50 2015 -0700
----------------------------------------------------------------------
ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql | 2 +-
ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql | 2 +-
ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql | 2 +-
.../src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql | 2 +-
ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/3a42dfa7/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql b/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
index d9e546f..28be510 100644
--- a/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
+++ b/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
@@ -291,7 +291,7 @@ CREATE TABLE requestoperationlevel (
cluster_name VARCHAR(255),
service_name VARCHAR(255),
host_component_name VARCHAR(255),
- host_id BIGINT NOT NULL,
+ host_id BIGINT NULL, -- unlike most host_id columns, this one allows NULLs because the request can be at the service level
PRIMARY KEY (operation_level_id));
CREATE TABLE key_value_store (`key` VARCHAR(255),
http://git-wip-us.apache.org/repos/asf/ambari/blob/3a42dfa7/ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql b/ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql
index 37aaf7d..31a645c 100644
--- a/ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql
+++ b/ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql
@@ -281,7 +281,7 @@ CREATE TABLE requestoperationlevel (
cluster_name VARCHAR2(255),
service_name VARCHAR2(255),
host_component_name VARCHAR2(255),
- host_id NUMBER(19) NOT NULL,
+ host_id NUMBER(19) NULL, -- unlike most host_id columns, this one allows NULLs because the request can be at the service level
PRIMARY KEY (operation_level_id));
CREATE TABLE key_value_store (
http://git-wip-us.apache.org/repos/asf/ambari/blob/3a42dfa7/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql b/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
index 8b1aaad..e46f5bf 100644
--- a/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
+++ b/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
@@ -297,7 +297,7 @@ CREATE TABLE requestoperationlevel (
cluster_name VARCHAR(255),
service_name VARCHAR(255),
host_component_name VARCHAR(255),
- host_id BIGINT NOT NULL,
+ host_id BIGINT NULL, -- unlike most host_id columns, this one allows NULLs because the request can be at the service level
PRIMARY KEY (operation_level_id));
CREATE TABLE ClusterHostMapping (
http://git-wip-us.apache.org/repos/asf/ambari/blob/3a42dfa7/ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql b/ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql
index f0686a9..05189bd 100644
--- a/ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql
+++ b/ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql
@@ -334,7 +334,7 @@ CREATE TABLE ambari.requestoperationlevel (
cluster_name VARCHAR(255),
service_name VARCHAR(255),
host_component_name VARCHAR(255),
- host_id BIGINT NOT NULL,
+ host_id BIGINT NULL, -- unlike most host_id columns, this one allows NULLs because the request can be at the service level
PRIMARY KEY (operation_level_id));
GRANT ALL PRIVILEGES ON TABLE ambari.requestoperationlevel TO :username;
http://git-wip-us.apache.org/repos/asf/ambari/blob/3a42dfa7/ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql b/ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql
index f5433f1..f98fb05 100644
--- a/ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql
+++ b/ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql
@@ -328,7 +328,7 @@ CREATE TABLE requestoperationlevel (
cluster_name VARCHAR(255),
service_name VARCHAR(255),
host_component_name VARCHAR(255),
- host_id BIGINT NOT NULL,
+ host_id BIGINT NULL, -- unlike most host_id columns, this one allows NULLs because the request can be at the service level
PRIMARY KEY CLUSTERED (operation_level_id)
);