You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2022/05/24 16:30:02 UTC

[GitHub] [hive] ayushtkn commented on a diff in pull request #3302: HIVE-26239 Shutdown Hash table load executor service threads when the…

ayushtkn commented on code in PR #3302:
URL: https://github.com/apache/hive/pull/3302#discussion_r880726160


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/fast/VectorMapJoinFastHashTableLoader.java:
##########
@@ -312,13 +312,11 @@ public void load(MapJoinTableContainer[] mapJoinTables,
                   inputName, cacheKey, receivedEntries, delta);
         }
       } catch (InterruptedException e) {
+        loadExecService.shutdownNow();

Review Comment:
   There is :
   ```
   loadExecService.awaitTermination(2, TimeUnit.MINUTES)
   ```
   This just waits 2 minutes, doesn't throw any exception, if the tasks don't get completed in 2 mins. Now if we waited 120 seconds and the task was supposed to be completed in 122 seconds. We would interrupt the thread now in the ``finally`` block?
   Won't the result or behaviour change post this change? say it had a chance to complete before it gets terminated or so....
   
   Or check for the return value of this awaitTermination and if it returns false, we throw an Exception rather than a success, that way this finally block might look cool 



-- 
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: gitbox-unsubscribe@hive.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org