diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/NettyShuffleEnvironment.java b/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/NettyShuffleEnvironment.java
index <HASH>..<HASH> 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/NettyShuffleEnvironment.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/NettyShuffleEnvironment.java
@@ -178,8 +178,8 @@ public class NettyShuffleEnvironment implements ShuffleEnvironment<ResultPartiti
 			checkNotNull(ownerName),
 			checkNotNull(executionAttemptID),
 			parentGroup,
-			nettyGroup.addGroup(METRIC_GROUP_INPUT),
-			nettyGroup.addGroup(METRIC_GROUP_OUTPUT));
+			nettyGroup.addGroup(METRIC_GROUP_OUTPUT),
+			nettyGroup.addGroup(METRIC_GROUP_INPUT));
 	}
 
 	@Override
[FLINK-<I>][metric]fix input group and output group of the task metric are reversed