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

Navis commented on HIVE-4308:
-----------------------------

I've dig a little more and found embedded derby cannot be used for this use 
case (Multiple clients with different class-loader might access to single 
embedded derby database). If it's only for test, changing code parts in 
HiveProfilerStatsAggregator#populateAggregateStats makes test passed.

{noformat}
  getProfileStatsStmt.close();
  rawProfileConnInfo.getConnection().close();
} catch(Exception e) {
  LOG.error("executing error: ", e);
}

to 

  populateAggregateStats(result);
  getProfileStatsStmt.close();
  } catch(Exception e) {
    LOG.error("executing error: ", e);
  } finally {
    HiveProfilerUtils.closeConnection(rawProfileConnInfo);
  }
{noformat}

                
> Newly added test TestCliDriver.hiveprofiler_union0 is failing on trunk
> ----------------------------------------------------------------------
>
>                 Key: HIVE-4308
>                 URL: https://issues.apache.org/jira/browse/HIVE-4308
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.11.0
>            Reporter: Ashutosh Chauhan
>
> This only happens while running whole test suite. Failure doesn't manifest if 
> this test is run alone.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to