tillrohrmann commented on a change in pull request #6876: [FLINK-10251] Handle
oversized response messages in AkkaRpcActor
URL: https://github.com/apache/flink/pull/6876#discussion_r248239441
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/rpc/akka/AkkaRpcServiceUtils.java
##########
@@ -199,6 +204,17 @@ public static String createRandomName(String prefix) {
return prefix + '_' + nameOffset;
}
+ //
------------------------------------------------------------------------
+ // RPC service configuration
+ //
------------------------------------------------------------------------
+
+ public static long extractMaximumFramesize(Configuration configuration)
{
+ String maxFrameSizeStr =
configuration.getString(AkkaOptions.FRAMESIZE);
+ String akkaConfigStr =
String.format(SIMPLE_AKKA_CONFIG_TEMPLATE, maxFrameSizeStr);
+ Config akkaConfig = ConfigFactory.parseString(akkaConfigStr);
+ return akkaConfig.getBytes(MAXIMUM_FRAME_SIZE_PATH);
+ }
Review comment:
Nice :-)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services