[GitHub] flink pull request #5454: [FLINK-8635] [rest] Register rescaling handlers at...

2018-02-23 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/flink/pull/5454


---


[GitHub] flink pull request #5454: [FLINK-8635] [rest] Register rescaling handlers at...

2018-02-10 Thread tillrohrmann
GitHub user tillrohrmann opened a pull request:

https://github.com/apache/flink/pull/5454

[FLINK-8635] [rest] Register rescaling handlers at web endpoint

## What is the purpose of the change

Registers the recaling handlers at the `WebMonitorEndpoint`

This PR is based on #5452 and #5453.

## Verifying this change

- Tested manually

## 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? (yes)
  - If yes, how is the feature documented? (not documented)


You can merge this pull request into a Git repository by running:

$ git pull https://github.com/tillrohrmann/flink registerRescalingHandlers

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/flink/pull/5454.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #5454


commit 8b052a62f91f5f3280d8706992e4dd1d2ffa35ab
Author: Till Rohrmann 
Date:   2018-02-09T13:07:31Z

[FLINK-8626] Introduce BackPressureStatsTracker interface

Renames BackPressureStatsTracker into BackPressureStatsTrackerImpl and 
introduce
a BackPressureStatsTracker interface. This will make testing easier when we 
don't
have to set up all the different components.

commit adad653b38a3484ffd5ec56d5f8de846286c4f2a
Author: Till Rohrmann 
Date:   2018-02-01T13:37:15Z

[hotfix] Fix checkstyle violations in ExecutionGraph

commit fb7241a114439b95793bfc87bf2a653c019cde50
Author: Till Rohrmann 
Date:   2018-02-01T17:04:06Z

[FLINK-8627] Introduce new JobStatus#SUSPENDING to ExecutionGraph

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.

commit 30d5b5e9f91923eb044755a1e53b200556007d80
Author: Till Rohrmann 
Date:   2018-02-10T22:26:51Z

fixup! [FLINK-8626] Introduce BackPressureStatsTracker interface

commit 96a1d0af5b6ad886f64f3618fa065701d198a144
Author: Till Rohrmann 
Date:   2018-02-01T15:14:53Z

[FLINK-8546] [flip6] Respect savepoints and restore from latest checkpoints

Let the JobMaster respect checkpoints and savepoints. The JobMaster will 
always
try to restore the latest checkpoint if there is one available. Next it 
will check
whether savepoint restore settings have been set. If so, then it will try 
to restore
the savepoint. Only if these settings are not set, the job will be started 
from
scratch.

commit c33f3a8a31beb89863f86db5fbcc1726f2373efb
Author: Till Rohrmann 
Date:   2018-02-10T22:42:23Z

[hotfix] [tests] Simplify JobMasterTest

commit 2b7d24c67b32b4cb9c09162969012da2df5e5ae7
Author: Till Rohrmann 
Date:   2018-02-01T13:37:37Z

[FLINK-8629] [flip6] Allow JobMaster to rescale jobs

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

commit 5020bda48e7972c1474b341e81b0cce3ec645972
Author: Till Rohrmann 
Date:   2018-02-09T12:11:50Z

[FLINK-8633] [flip6] Expose rescaling of jobs via the Dispatcher

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

commit 1242d36c669beb5dc77b84340fcabff1314d4321
Author: Till Rohrmann 
Date:   2018-02-02T10:23:00Z

[FLINK-8632] [flip6] Introduce generalized asynchronous operation handlers

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