You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by gi...@apache.org on 2019/05/03 22:05:44 UTC
[hadoop] branch trunk updated: YARN-9528. Federation RMs starting
up at the same time can give duplicate application IDs. Contributed by
Young Chen.
This is an automated email from the ASF dual-hosted git repository.
gifuma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new d331a2a YARN-9528. Federation RMs starting up at the same time can give duplicate application IDs. Contributed by Young Chen.
d331a2a is described below
commit d331a2a0c2e430030bf82ba44b677b13cc8e8bc5
Author: Giovanni Matteo Fumarola <gi...@apache.org>
AuthorDate: Fri May 3 15:05:17 2019 -0700
YARN-9528. Federation RMs starting up at the same time can give duplicate application IDs. Contributed by Young Chen.
---
.../bin/FederationStateStore/MySQL/FederationStateStoreTables.sql | 1 +
.../bin/FederationStateStore/SQLServer/FederationStateStoreTables.sql | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/hadoop-yarn-project/hadoop-yarn/bin/FederationStateStore/MySQL/FederationStateStoreTables.sql b/hadoop-yarn-project/hadoop-yarn/bin/FederationStateStore/MySQL/FederationStateStoreTables.sql
index 57cecb2..3a255f0 100644
--- a/hadoop-yarn-project/hadoop-yarn/bin/FederationStateStore/MySQL/FederationStateStoreTables.sql
+++ b/hadoop-yarn-project/hadoop-yarn/bin/FederationStateStore/MySQL/FederationStateStoreTables.sql
@@ -37,6 +37,7 @@ CREATE TABLE membership(
lastStartTime bigint NULL,
capability varchar(6000),
CONSTRAINT pk_subClusterId PRIMARY KEY (subClusterId)
+ UNIQUE(lastStartTime)
);
CREATE TABLE policies(
diff --git a/hadoop-yarn-project/hadoop-yarn/bin/FederationStateStore/SQLServer/FederationStateStoreTables.sql b/hadoop-yarn-project/hadoop-yarn/bin/FederationStateStore/SQLServer/FederationStateStoreTables.sql
index a97385b..c16091c 100644
--- a/hadoop-yarn-project/hadoop-yarn/bin/FederationStateStore/SQLServer/FederationStateStoreTables.sql
+++ b/hadoop-yarn-project/hadoop-yarn/bin/FederationStateStore/SQLServer/FederationStateStoreTables.sql
@@ -78,6 +78,10 @@ IF NOT EXISTS ( SELECT * FROM [FederationStateStore].sys.tables
(
[subClusterId]
)
+ CONSTRAINT [uc_lastStartTime] UNIQUE
+ (
+ [lastStartTime]
+ )
)
SET ANSI_PADDING OFF
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org