Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-5971] [flip-6] Add timeout for registered jobs on the Resource…
…Manager This PR introduces a timeout for inactive jobs on the ResourceManager. A job is inactive if there is no active leader known for this job. In case that a job times out, it will be removed from the ResourceManager. Additionally, this PR removes the dependency of the JobLeaderIdService on the RunningJobsRegistry. Fix YarnFlinkApplicationMasterRunner to use correct arguments for JobLeaderIdService Fix race condition in JobLeaderIdListener#cancelTimeout This closes #3488.
- Loading branch information
1 parent
04aee61
commit fcd264a
Showing
14 changed files
with
498 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
flink-core/src/main/java/org/apache/flink/configuration/ResourceManagerOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,40 @@ | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
* or more contributor license agreements. See the NOTICE file | |||
* distributed with this work for additional information | |||
* regarding copyright ownership. The ASF licenses this file | |||
* to you under the Apache License, Version 2.0 (the | |||
* "License"); you may not use this file except in compliance | |||
* with the License. You may obtain a copy of the License at | |||
* | |||
* http://www.apache.org/licenses/LICENSE-2.0 | |||
* | |||
* Unless required by applicable law or agreed to in writing, software | |||
* distributed under the License is distributed on an "AS IS" BASIS, | |||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
* See the License for the specific language governing permissions and | |||
* limitations under the License. | |||
*/ | |||
|
|||
package org.apache.flink.configuration; | |||
|
|||
import org.apache.flink.annotation.PublicEvolving; | |||
|
|||
/** | |||
* The set of configuration options relating to the ResourceManager | |||
*/ | |||
@PublicEvolving | |||
public class ResourceManagerOptions { | |||
|
|||
/** | |||
* Timeout for jobs which don't have a job manager as leader assigned. | |||
*/ | |||
public static final ConfigOption<String> JOB_TIMEOUT = ConfigOptions | |||
.key("resourcemanager.job.timeout") | |||
.defaultValue("5 minutes"); | |||
|
|||
// --------------------------------------------------------------------------------------------- | |||
|
|||
/** Not intended to be instantiated */ | |||
private ResourceManagerOptions() {} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.