You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "rbalamohan (via GitHub)" <gi...@apache.org> on 2023/02/21 07:47:05 UTC

[GitHub] [tez] rbalamohan commented on a diff in pull request #257: TEZ-4460: Read timed out in shuffle handler - incorrect usage of EMPTY_LAST_CONTENT and channel write

rbalamohan commented on code in PR #257:
URL: https://github.com/apache/tez/pull/257#discussion_r1112671783


##########
tez-plugins/tez-aux-services/src/main/java/org/apache/tez/auxservices/ShuffleHandler.java:
##########
@@ -306,21 +305,24 @@ public ReduceMapFileCount(ReduceContext rc) {
 
     @Override
     public void operationComplete(ChannelFuture future) throws Exception {
+      Channel ch = future.channel();
       if (!future.isSuccess()) {
-        future.channel().close();
+        ch.close();
         return;
       }
       int waitCount = this.reduceContext.getMapsToWait().decrementAndGet();
       if (waitCount == 0) {
+        LOG.debug("Finished with all map outputs");
+        ch.writeAndFlush(LastHttpContent.EMPTY_LAST_CONTENT);

Review Comment:
   Is this issue mainly due to nettty upgrade (4.x?)



-- 
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: issues-unsubscribe@tez.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org