YARN-9528. Federation RMs starting up at the same time can give duplicate application IDs. Contributed by Young Chen.

This commit is contained in:
Giovanni Matteo Fumarola 2019-05-03 15:05:17 -07:00
parent f194540520
commit d331a2a0c2
2 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,7 @@ CREATE TABLE membership(
lastStartTime bigint NULL,
capability varchar(6000),
CONSTRAINT pk_subClusterId PRIMARY KEY (subClusterId)
UNIQUE(lastStartTime)
);
CREATE TABLE policies(

View File

@ -78,6 +78,10 @@ IF NOT EXISTS ( SELECT * FROM [FederationStateStore].sys.tables
(
[subClusterId]
)
CONSTRAINT [uc_lastStartTime] UNIQUE
(
[lastStartTime]
)
)
SET ANSI_PADDING OFF