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

Hive QA commented on HIVE-19888:
--------------------------------



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

{color:red}ERROR:{color} -1 due to no test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 14531 tests 
executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.metastore.client.TestRuntimeStats.testCleanup[Embedded] 
(batchId=212)
{noformat}

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

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: 1 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12927733 - PreCommit-HIVE-Build

> Misleading "METASTORE_FILTER_HOOK will be ignored" warning from SessionState
> ----------------------------------------------------------------------------
>
>                 Key: HIVE-19888
>                 URL: https://issues.apache.org/jira/browse/HIVE-19888
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>    Affects Versions: 3.0.0
>            Reporter: Marcelo Vanzin
>            Assignee: Marcelo Vanzin
>            Priority: Minor
>         Attachments: HIVE-19888.1.patch
>
>
> When I run things on my test cluster I see things like this in my logs:
> {noformat}
> 18/03/14 13:35:20 WARN session.SessionState: METASTORE_FILTER_HOOK will be 
> ignored, since hive.security.authorization.manager is set to instance of 
> HiveAuthorizerFactory.
> 18/03/14 13:35:21 WARN session.SessionState: METASTORE_FILTER_HOOK will be 
> ignored, since hive.security.authorization.manager is set to instance of 
> HiveAuthorizerFactory.
> {noformat}
> That's because the code in SessionState.java is wrong:
> {code}
>     String metastoreHook = 
> sessionConf.get(ConfVars.METASTORE_FILTER_HOOK.name());
>     if 
> (!ConfVars.METASTORE_FILTER_HOOK.getDefaultValue().equals(metastoreHook) &&
>         
> !AuthorizationMetaStoreFilterHook.class.getName().equals(metastoreHook)) {
>       LOG.warn(ConfVars.METASTORE_FILTER_HOOK.name() +
>           " will be ignored, since hive.security.authorization.manager" +
>           " is set to instance of HiveAuthorizerFactory.");
>     }
> {code}
> It's using {{.name()}} which is the enum name, not the actual config key.



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

Reply via email to