Skip to content

Conversation

@tillrohrmann
Copy link
Contributor

What is the purpose of the change

Add rescaling REST handler as a sub class of the AbstractAsynchronousOperationHandlers.

This PR is based on #5452 and #5451.

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)

The new JobStatus#SUSPENDING says that an ExecutionGraph has been suspended but its
clean up has not been done yet. Only after all Executions have been canceled, the
ExecutionGraph will enter the SUSPENDED state and complete the termination future
accordingly.

This closes apache#5445.
This commit adds the functionality to rescale a job or parts of it to
the JobMaster. In order to rescale a job, the JobMaster does the following:
1. Take a savepoint
2. Create a rescaled ExecutionGraph from the JobGraph
3. Initialize it with the taken savepoint
4. Suspend the old ExecutionGraph
5. Restart the new ExecutionGraph once the old ExecutionGraph has been suspended

This closes apache#5446.
This commit exposes the JobMaster#rescaleJob via the Dispatcher. This will
allow it to call this functionality from a REST handler.

This closes apache#5452.
This commit allows the Restclient to receive generic response types. In order
to do this, the MessageHeaders contain now information about the generic
type parameters of the response type.

This closes apache#5450.
…dlers

The asynchronous operation handlers are the generalization of the SavepointHandlers.
They consist of a Trigger- and a StatusHandler. The TriggerHandler is used to trigger
an asynchronous operation. The handler stores the operation future and returns a
trigger id. The trigger id can be used to query the status of the operation via the
StatusHandler. Once the operation has completed, the StatusHandler will return the
result.

This closes apache#5451.
Add rescaling REST handler as a sub class of the
AbstractAsynchronousOperationHandlers.

This closes apache#5451.
@tillrohrmann
Copy link
Contributor Author

Merged

@tillrohrmann tillrohrmann deleted the rescalingHandlers branch May 29, 2018 10:21
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.

2 participants