Sxnan commented on code in PR #24853:
URL: https://github.com/apache/flink/pull/24853#discussion_r1619691173


##########
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:
   The `taskmanager.network.batch-shuffle.compression.enabled` is `true` by 
default, the new user that only  
`taskmanager.network.batch-shuffle.compression.enabled` to `true` will always 
see the warning and have to set explicitly set the 
`taskmanager.network.batch-shuffle.compression.enabled` to `false`, if we print 
a warning in this case.
   
   However, I think it is reasonable to print a warning if the user set 
`taskmanager.network.batch-shuffle.compression.enabled` to `false` to disable 
the compression 



##########
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:
   Good catch! 



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