zentol commented on code in PR #24292:
URL: https://github.com/apache/flink/pull/24292#discussion_r1485904612
##########
flink-rpc/flink-rpc-core/src/main/java/org/apache/flink/runtime/rpc/RpcGateway.java:
##########
@@ -34,4 +34,16 @@ public interface RpcGateway {
* @return Fully qualified hostname under which the associated rpc
endpoint is reachable
*/
String getHostname();
+
+ /**
+ * Perform optional steps before handling any messages or performing
service actions (e.g.
+ * start/stop).
+ */
+ default void beforeInvocation() {}
Review Comment:
Not a fan of these because it means we couple components more. I'd rather
see us add some pre/post-runnable args to wherever the MDC is set up.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]