Skip to content

Conversation

@tillrohrmann
Copy link
Contributor

What is the purpose of the change

Clean up ExecutionGraphCache to use ArchivedExecutionGraphs.

This PR is based on #7756.

Brief change log

Change RestfulGateway#requestJob return type to CompletableFuture.

The ExecutionGraphCache now only stores ArchivedExecutionGraphs since it will never receive an
ExecutionGraph from the RestfulGateway.

  • Remove ExecutionGraphTest#testCacheInvalidationIfSuspended
  • Remove ExecutionGraphTest#testCacheInvalidationIfSwitchToSuspended

Verifying this change

  • Run existing tests

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
  • The serializers: (no)
  • The runtime per-record code paths (performance sensitive): (no)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
  • The S3 file system connector: (no)

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable)

@flinkbot
Copy link
Collaborator

Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.

Review Progress

  • ❌ 1. The [description] looks good.
  • ❌ 2. There is [consensus] that the contribution should go into to Flink.
  • ❔ 3. Needs [attention] from.
  • ❌ 4. The change fits into the overall [architecture].
  • ❌ 5. Overall code [quality] is good.

Please see the Pull Request Review Guide for a full explanation of the review process.

Details

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot approve description to approve the 1st aspect (similarly, it also supports the consensus, architecture and quality keywords)
  • @flinkbot approve all to approve all aspects
  • @flinkbot attention @username1 [@username2 ..] to require somebody's attention
  • @flinkbot disapprove architecture to remove an approval

Copy link
Contributor

@zentol zentol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for FLINK-11678 commits
@flinkbot approve all

@zentol zentol self-assigned this Feb 20, 2019
@tillrohrmann
Copy link
Contributor Author

Thanks for the review @zentol. Merging after #7756 has been merged.

Nulling the resourceManagerAddress when suspending the JobMaster prevents that the
JobMaster tries to reconnect to the ResourceManager if it receives a disconnectResourceManager
message.
…omically

This commit makes the suspend call transition the ExecutionGraph atomically into the
SUSPENDED state without requiring a round-trip to cancel all task properly. Instead it
simply notifies the TaskExecutors about the suspension and then transitions the Executions
into a terminal state. Moreover, this commit removes JobStatus#SUSPENDING.

This closes apache#7756.
The ExecutionGraphCache now only stores ArchivedExecutionGraphs since it will never receive an
ExecutionGraph from the RestfulGateway.

- Remove ExecutionGraphTest#testCacheInvalidationIfSuspended
- Remove ExecutionGraphTest#testCacheInvalidationIfSwitchToSuspended

This closes apache#7769.
@tillrohrmann tillrohrmann deleted the FLINK-11678 branch February 20, 2019 17:21
asfgit pushed a commit that referenced this pull request Feb 20, 2019
The ExecutionGraphCache now only stores ArchivedExecutionGraphs since it will never receive an
ExecutionGraph from the RestfulGateway.

- Remove ExecutionGraphTest#testCacheInvalidationIfSuspended
- Remove ExecutionGraphTest#testCacheInvalidationIfSwitchToSuspended

This closes #7769.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants