[ 
https://issues.apache.org/jira/browse/HIVE-20515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16606993#comment-16606993
 ] 

Hive QA commented on HIVE-20515:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12938743/HIVE-20515.1.patch

{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 5 failed/errored test(s), 14929 tests 
executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestMiniDruidCliDriver.testCliDriver[druidmini_dynamic_partition]
 (batchId=193)
org.apache.hadoop.hive.cli.TestMiniDruidCliDriver.testCliDriver[druidmini_expressions]
 (batchId=193)
org.apache.hadoop.hive.cli.TestMiniDruidCliDriver.testCliDriver[druidmini_test1]
 (batchId=193)
org.apache.hadoop.hive.cli.TestMiniDruidCliDriver.testCliDriver[druidmini_test_alter]
 (batchId=193)
org.apache.hadoop.hive.cli.TestMiniDruidCliDriver.testCliDriver[druidmini_test_insert]
 (batchId=193)
{noformat}

Test results: 
https://builds.apache.org/job/PreCommit-HIVE-Build/13640/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/13640/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-13640/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 5 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12938743 - PreCommit-HIVE-Build

> Empty query results when using results cache and query temp dir, results 
> cache dir in different filesystems
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-20515
>                 URL: https://issues.apache.org/jira/browse/HIVE-20515
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Jason Dere
>            Assignee: Jason Dere
>            Priority: Major
>         Attachments: HIVE-20515.1.patch
>
>
> If the scratchdir for temporary query results and the results cache dir are 
> in different filesystems, moving the query from the temp directory to results 
> cache will fail.
> Looking at the moveResultsToCacheDirectory() logic in QueryResultsCache.java, 
> I see the following issues:
> - FileSystem.rename() is used, which only works if the files are on the same 
> filesystem. Need to use something like Hive.mvFile or something similar which 
> can work between different filesystems.
> - The return code from rename() was not checked which might possibly have 
> caught the error here. This may not be applicable if a different method from 
> FS.rename() is used in the proper fix.
> With some filesystems (noticed this with WASB), if FileSystem.rename() 
> returns false on failure rather than throwing an exception, then this results 
> in empty results showing up for the query because the return code was not 
> checked properly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to