hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-12928) SessionState.start() to include filename in failures to set up temp paths
Date Tue, 26 Jan 2016 14:24:39 GMT
Steve Loughran created HIVE-12928:
-------------------------------------

             Summary: SessionState.start() to include filename in failures to set up temp
paths
                 Key: HIVE-12928
                 URL: https://issues.apache.org/jira/browse/HIVE-12928
             Project: Hive
          Issue Type: Improvement
    Affects Versions: 1.2.1
         Environment: Test system where java.io.tmpdir wasn't writeable by user
            Reporter: Steve Loughran


When hive can't write to the tmpdir you get —as you'd expect— a stack trace.

unfortunately, what you get is a multiple-wrapped stack trace without any details as to what
went wrong:
{code}
java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: Permission denied
{code}

This makes finding the root cause somewhat harder than necessary.

It seems to me that
# Any IOE raised on failure to create a temp file should be caught and rethrown.
# there's no need to wrap a {{RuntimeException}} with a {{RuntimeException}.

I can do a patch for this, if people promise to review it and then, perhaps, even commit it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message