Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-9912][JM] Release TaskExecutors if they have no slots registered at SlotPool #6394

Closed
wants to merge 2 commits into from

Conversation

tillrohrmann
Copy link
Contributor

What is the purpose of the change

This commit extends the SlotPools behaviour when failing an allocation by sending a notification
message to the TaskExecutor about the freed slot. Moreover, it checks whether the affected
TaskExecutor has more slots registered or not. In the latter case, the TaskExecutor's connection
will be eagerly closed.

This PR is based on #6389.

Brief change log

  • send freeSlot message to owning TaskExecutor of failed AllocatedSlot
  • close TaskExecutor connection if it no longer has slots registered at the JobMaster

Verifying this change

  • Added SlotPoolTest#testFreeFailedSlots, SlotPoolTest#testFailingAllocationFailsPendingSlotRequests and JobMasterTest#testReleasingTaskExecutorIfNoMoreSlotsRegistered

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: (yes)
  • 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)

The SlotSharingManager is designed to be used by a single thread. Therefore,
it is the responsibility of the caller to make sure that there is only a single
thread at any given time accesssing this component. Consequently, the component
does not need to be synchronized.

This closes apache#6389.
…ed at SlotPool

This commit extends the SlotPools behaviour when failing an allocation by sending a notification
message to the TaskExecutor about the freed slot. Moreover, it checks whether the affected
TaskExecutor has more slots registered or not. In the latter case, the TaskExecutor's connection
will be eagerly closed.

This closes apache#6394.
@asfgit asfgit closed this in e3c98f0 Sep 17, 2018
@tillrohrmann tillrohrmann deleted the releaseTaskExecutors branch September 17, 2018 13:58
kl0u pushed a commit to kl0u/flink that referenced this pull request Sep 20, 2018
…ed at SlotPool

This commit extends the SlotPools behaviour when failing an allocation by sending a notification
message to the TaskExecutor about the freed slot. Moreover, it checks whether the affected
TaskExecutor has more slots registered or not. In the latter case, the TaskExecutor's connection
will be eagerly closed.

This closes apache#6394.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants