TanYuxin-tyx commented on code in PR #24853:
URL: https://github.com/apache/flink/pull/24853#discussion_r1618468471


##########
flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/NettyShuffleEnvironmentConfiguration.java:
##########
@@ -373,11 +373,18 @@ public static NettyShuffleEnvironmentConfiguration 
fromConfiguration(
         BoundedBlockingSubpartitionType blockingSubpartitionType =
                 getBlockingSubpartitionType(configuration);
 
-        boolean batchShuffleCompressionEnabled =
-                
configuration.get(NettyShuffleEnvironmentOptions.BATCH_SHUFFLE_COMPRESSION_ENABLED);
         CompressionCodec compressionCodec =
                 
configuration.get(NettyShuffleEnvironmentOptions.SHUFFLE_COMPRESSION_CODEC);
 
+        boolean batchShuffleCompressionEnabled;
+        if (compressionCodec == CompressionCodec.NONE) {

Review Comment:
   If the codec is NONE while the old config 
`BATCH_SHUFFLE_COMPRESSION_ENABLED` is true, do we need to print a warning log 
to deal with this case?



##########
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamPipelineOptions.java:
##########
@@ -31,6 +31,7 @@
  * The {@link ConfigOption configuration options} for job execution. Those are 
stream specific
  * options. See also {@link org.apache.flink.configuration.PipelineOptions}.

Review Comment:
   I noticed that other deprecated options add the comments of `This option is 
deprecated in 1.20 and will be removed in 2.0`, do we need to add those 
comments here as well? 



##########
flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java:
##########
@@ -425,6 +446,21 @@ public enum CompressionCodec {
                                     + "tasks have occupied all the buffers and 
the downstream tasks are waiting for the exclusive buffers. The timeout breaks"
                                     + "the tie by failing the request of 
exclusive buffers and ask users to increase the number of total buffers.");
 
+    /** The timeout for requesting buffers for each channel. */
+    @Documentation.ExcludeFromDocumentation(
+            "This option is purely implementation related, and may be removed 
as the implementation changes.")
+    public static final ConfigOption<Duration> NETWORK_BUFFERS_REQUEST_TIMEOUT 
=
+            key("taskmanager.network.memory.exclusive-buffers-request-timeout")

Review Comment:
   IIRC, this config key change is to remove the concept of `exclusive`, while 
the key remains `exclusive` after this change.



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

Reply via email to