YARN-9528. Federation RMs starting up at the same time can give duplicate application IDs. Contributed by Young Chen.
This commit is contained in:
parent
f194540520
commit
d331a2a0c2
@ -37,6 +37,7 @@ CREATE TABLE membership(
|
||||
lastStartTime bigint NULL,
|
||||
capability varchar(6000),
|
||||
CONSTRAINT pk_subClusterId PRIMARY KEY (subClusterId)
|
||||
UNIQUE(lastStartTime)
|
||||
);
|
||||
|
||||
CREATE TABLE policies(
|
||||
|
@ -78,6 +78,10 @@ IF NOT EXISTS ( SELECT * FROM [FederationStateStore].sys.tables
|
||||
(
|
||||
[subClusterId]
|
||||
)
|
||||
CONSTRAINT [uc_lastStartTime] UNIQUE
|
||||
(
|
||||
[lastStartTime]
|
||||
)
|
||||
)
|
||||
|
||||
SET ANSI_PADDING OFF
|
||||
|
Loading…
Reference in New Issue
Block a user