You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "John Doe (JIRA)" <ji...@apache.org> on 2018/05/03 18:31:00 UTC
[jira] [Created] (HIVE-19406) HiveKVResultCache.setupOutput hangs
when the file creation failed
John Doe created HIVE-19406:
-------------------------------
Summary: HiveKVResultCache.setupOutput hangs when the file creation failed
Key: HIVE-19406
URL: https://issues.apache.org/jira/browse/HIVE-19406
Project: Hive
Issue Type: Bug
Components: SQL
Affects Versions: 2.3.2
Reporter: John Doe
The while loop in the HiveKVResultCache.setupOutput function hangs endlessly when the file creation failed, causing the delete() returns false.
The file creation failure can be caused by different reasons, e.g., disk full.
Here is the code snippet.
{code:java}
private void setupOutput() throws IOException {
if (parentFile == null) {
while (true) {
parentFile = File.createTempFile("hive-resultcache", "");
if (parentFile.delete() && parentFile.mkdir()) {
parentFile.deleteOnExit();
break;
}
if (LOG.isDebugEnabled()) {
LOG.debug("Retry creating tmp result-cache directory...");
}
}
}
...
}
{code}
A similar case is [HIVE-19391|https://issues.apache.org/jira/browse/HIVE-19391]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)