[ https://issues.apache.org/jira/browse/HIVE-21864?focusedWorklogId=259555&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-259555 ]
ASF GitHub Bot logged work on HIVE-21864: ----------------------------------------- Author: ASF GitHub Bot Created on: 13/Jun/19 13:00 Start Date: 13/Jun/19 13:00 Worklog Time Spent: 10m Work Description: ShubhamChaurasia commented on pull request #669: HIVE-21864: LlapBaseInputFormat#closeAll() throws ConcurrentModificationException URL: https://github.com/apache/hive/pull/669#discussion_r293363989 ########## File path: llap-ext-client/src/java/org/apache/hadoop/hive/llap/LlapBaseInputFormat.java ########## @@ -345,8 +346,11 @@ public static void close(String handleId) throws IOException { */ public static void closeAll() { LOG.debug("Closing all handles"); - for (String handleId : connectionMap.keySet()) { + Iterator<String> handleIds = connectionMap.keySet().iterator(); + String handleId = null; + while (handleIds.hasNext()) { try { + handleId = handleIds.next(); Review comment: Added another patch :) ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 259555) Time Spent: 50m (was: 40m) > LlapBaseInputFormat#closeAll() throws ConcurrentModificationException > --------------------------------------------------------------------- > > Key: HIVE-21864 > URL: https://issues.apache.org/jira/browse/HIVE-21864 > Project: Hive > Issue Type: Bug > Components: llap > Affects Versions: 3.1.1 > Reporter: Shubham Chaurasia > Assignee: Shubham Chaurasia > Priority: Major > Labels: pull-request-available > Attachments: HIVE-21864.1.patch, HIVE-21864.2.patch > > Time Spent: 50m > Remaining Estimate: 0h > -- This message was sent by Atlassian JIRA (v7.6.3#76005)