yanghua commented on a change in pull request #6839: [FLINK-10253] Run 
MetricQueryService with lower priority
URL: https://github.com/apache/flink/pull/6839#discussion_r225790005
 
 

 ##########
 File path: 
flink-runtime/src/main/scala/org/apache/flink/runtime/akka/AkkaUtils.scala
 ##########
 @@ -291,12 +291,21 @@ object AkkaUtils {
     ConfigFactory.parseString(config)
   }
 
-  def getThreadPoolExecutorConfig: Config = {
+  def getThreadPoolExecutorConfig(threadPriority: Int): Config = {
+    if (threadPriority < Thread.MIN_PRIORITY || threadPriority > 
Thread.MAX_PRIORITY) {
+      throw new IllegalConfigurationException("The config : " +
+        MetricOptions.QUERY_SERVICE_THREAD_PRIORITY.key() + "'s value must 
between "
+        + Thread.MIN_PRIORITY + " and " + Thread.MAX_PRIORITY +
+        ", but the value is " + threadPriority)
 
 Review comment:
   Removed the `MetricOptions.QUERY_SERVICE_THREAD_PRIORITY`.

----------------------------------------------------------------
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

Reply via email to