[
https://issues.apache.org/jira/browse/HIVE-27029?focusedWorklogId=843794&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-843794
]
ASF GitHub Bot logged work on HIVE-27029:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 06/Feb/23 12:58
Start Date: 06/Feb/23 12:58
Worklog Time Spent: 10m
Work Description: maheshrajus opened a new pull request, #4024:
URL: https://github.com/apache/hive/pull/4024
<!--
Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/Hive/HowToContribute
2. Ensure that you have created an issue on the Hive project JIRA:
https://issues.apache.org/jira/projects/HIVE/summary
3. Ensure you have added or run the appropriate tests for your PR:
4. If the PR is unfinished, add '[WIP]' in your PR title, e.g.,
'[WIP]HIVE-XXXXX: Your PR title ...'.
5. Be sure to keep the PR description updated to reflect all changes.
6. Please write your PR title to summarize what this PR proposes.
7. If possible, provide a concise example to reproduce the issue for a
faster review.
-->
### What changes were proposed in this pull request?
This PR is raised to rework the code fixed as part of HIVE-26352.
### Why are the changes needed?
We should remove finally block as it causing the filesystem close exception
when using explicit queue name the tez.queue.access is used and statistics
gathering is enabled
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
<!--
If tests were added, say they were added here. Please make sure to add some
test cases that check the changes thoroughly including negative and positive
cases if possible.
If it was tested in a way different from regular unit tests, please clarify
how you tested step by step, ideally copy and paste-able, so that other
reviewers can test and check, and descendants can verify in the future.
If tests were not added, please describe why they were not added and/or why
it was difficult to add.
-->
Issue Time Tracking
-------------------
Worklog Id: (was: 843794)
Remaining Estimate: 0h
Time Spent: 10m
> hive query fails with Filesystem closed error
> ---------------------------------------------
>
> Key: HIVE-27029
> URL: https://issues.apache.org/jira/browse/HIVE-27029
> Project: Hive
> Issue Type: Bug
> Reporter: Mahesh Raju Somalaraju
> Assignee: Mahesh Raju Somalaraju
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> This Jira is raised to modify/fix the code which is done in part of
> *HIVE-26352.*
>
> we should remove the finally block as this is causing the filesystem close
> errors.
> String queueName, String userName) throws IOException, InterruptedException {
> UserGroupInformation ugi = UserGroupInformation.getCurrentUser();
> try {
> ugi.doAs((PrivilegedExceptionAction<Void>) () -> {
> checkQueueAccessInternal(queueName, userName);
> return null;
> });
> } {color:#0747a6}*finally {*{color}
> {color:#0747a6} *try {*{color}
> {color:#0747a6} *FileSystem.closeAllForUGI(ugi);*{color}
> } catch (IOException exception) {
> LOG.error("Could not clean up file-system handles for UGI: " + ugi,
> exception);
> }
> }
> }
>
> Caused by: java.io.IOException: Filesystem closed
> at org.apache.hadoop.hdfs.DFSClient.checkOpen(DFSClient.java:483)
> ~[hadoop-hdfs-client-3.1.1.7.1.8.11-3.jar:?]
> at org.apache.hadoop.hdfs.DFSClient.getEZForPath(DFSClient.java:2771)
> ~[hadoop-hdfs-client-3.1.1.7.1.8.11-3.jar:?]
> at
> org.apache.hadoop.hdfs.DistributedFileSystem$54.doCall(DistributedFileSystem.java:2796)
> ~[hadoop-hdfs-client-3.1.1.7.1.8.11-3.jar:?]
> at
> org.apache.hadoop.hdfs.DistributedFileSystem$54.doCall(DistributedFileSystem.java:2793)
> ~[hadoop-hdfs-client-3.1.1.7.1.8.11-3.jar:?]
> at
> org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
> ~[hadoop-common-3.1.1.7.1.8.11-3.jar:?]
> at
> org.apache.hadoop.hdfs.DistributedFileSystem.getEZForPath(DistributedFileSystem.java:2812)
> ~[hadoop-hdfs-client-3.1.1.7.1.8.11-3.jar:?]
> at
> org.apache.hadoop.hdfs.client.HdfsAdmin.getEncryptionZoneForPath(HdfsAdmin.java:374)
> ~[hadoop-hdfs-client-3.1.1.7.1.8.11-3.jar:?]
> at
> org.apache.hadoop.hive.shims.Hadoop23Shims$HdfsEncryptionShim.getEncryptionZoneForPath(Hadoop23Shims.java:1384)
> ~[hive-exec-3.1.3000.7.1.8.11-3.jar:3.1.3000.7.1.8.11-3]
> at
> org.apache.hadoop.hive.shims.Hadoop23Shims$HdfsEncryptionShim.isPathEncrypted(Hadoop23Shims.java:1379)
> ~[hive-exec-3.1.3000.7.1.8.11-3.jar:3.1.3000.7.1.8.11-3]
> at
> org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.isPathEncrypted(SemanticAnalyzer.java:2484)
> ~[hive-exec-3.1.3000.7.1.8.11-3.jar:3.1.3000.7.1.8.11-3]
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)