[ 
https://issues.apache.org/jira/browse/KNOX-2807?focusedWorklogId=811542&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-811542
 ]

ASF GitHub Bot logged work on KNOX-2807:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/Sep/22 09:12
            Start Date: 23/Sep/22 09:12
    Worklog Time Spent: 10m 
      Work Description: smolnar82 opened a new pull request, #636:
URL: https://github.com/apache/knox/pull/636

   ## What changes were proposed in this pull request?
   
   Knox's automated service discovery had a bug when it came to HIVE(_ON_TEZ) 
service discovery. These services have their SSL-enabled flag on the service 
level, but the generated service model (by Knox) stored that information in the 
HS2 role configs.
   In addition to this, the CM configuration name referred to the so-called 
`related name` configuration field which Knox does not consider when comparing 
previous and current service/role configs.
   
   ## How was this patch tested?
   
   Updated JUnit tests and executed manual testing in a cluster with KNOX, HIVE 
and HIVE_ON_TEZ.
   




Issue Time Tracking
-------------------

            Worklog Id:     (was: 811542)
    Remaining Estimate: 0h
            Time Spent: 10m

> Restart of HIVE_ON_TEZ causes a Knox topology redeploy
> ------------------------------------------------------
>
>                 Key: KNOX-2807
>                 URL: https://issues.apache.org/jira/browse/KNOX-2807
>             Project: Apache Knox
>          Issue Type: Bug
>            Reporter: Sandor Molnar
>            Assignee: Sandor Molnar
>            Priority: Critical
>             Fix For: 2.0.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> A restart of HIVE_ON_TEZ triggers a topology redeploy: gateway.log contains 
> the following line, even though there was no configuration change.
> {code:java}
> Role property hive.server2.use.SSL value has changed from true to null {code}
> Possibly caused by 
> [HiveServiceModelGenerator|https://github.infra.cloudera.com/CDH/knox/blob/7a69a5128fa8052e24bae3bb012f48fad1eaf154/gateway-discovery-cm/src/main/java/org/apache/knox/gateway/topology/discovery/cm/model/hive/HiveServiceModelGenerator.java#L77]
>  pushing the service level *hive.server2.use.SSL* setting to the role level, 
> while 
> [PollingConfigurationAnalyzer|https://github.infra.cloudera.com/CDH/knox/blob/7a69a5128fa8052e24bae3bb012f48fad1eaf154/gateway-discovery-cm/src/main/java/org/apache/knox/gateway/topology/discovery/cm/monitor/PollingConfigurationAnalyzer.java#L515]
>  not doing so.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to