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-7409] [web] Make WebRuntimeMonitor reactive #4527

Closed
wants to merge 1 commit into from

Conversation

tillrohrmann
Copy link
Contributor

What is the purpose of the change

This commit changes the behaviour of the WebRuntimeMonitor to not longer block serving
threads by waiting on the result of futures. Instead the RequestHandler now returns a
CompletableFuture which is written out to the Netty channel upon
completion. This will improve the performance of our WebRuntimeMonitor.

This PR is based #4492.

Brief change log

  • Change signature of RequestHandler#handleRequest
  • Adapt existing handlers to return async result
  • Adapt test cases

Verifying this change

This change is already covered by existing tests, such as the tests contained in flink-runtime-web.

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)

Documentation

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

@greghogan
Copy link
Contributor

@tillrohrmann please rebase now that #4492 has been merged

@tillrohrmann
Copy link
Contributor Author

Done @greghogan.

@tillrohrmann
Copy link
Contributor Author

Failing test cases are unrelated. Merging this PR.

This commit changes the behaviour of the WebRuntimeMonitor to not longer block serving
threads by waiting on the result of futures. Instead the RequestHandler now returns a
CompletableFuture<FullHttpResponse> which is written out to the Netty channel upon
completion. This will improve the performance of our WebRuntimeMonitor.

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