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

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

                Author: ASF GitHub Bot
            Created on: 05/May/23 13:05
            Start Date: 05/May/23 13:05
    Worklog Time Spent: 10m 
      Work Description: smolnar82 opened a new pull request, #755:
URL: https://github.com/apache/knox/pull/755

   ## What changes were proposed in this pull request?
   
   CM's `PollingConfigurationAnalyzer` ignores events of service types that 
have no `ServiceModelGenerator` instances to avoid redundant topology 
redeployment.
   
   ## How was this patch tested?
   
   Updated JUnit tests and executed comprehensive manual testing in a live CM 
cluster with lots of services.




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

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

> Events related to non-proxied services cause Knox to perform a topology 
> redeploy
> --------------------------------------------------------------------------------
>
>                 Key: KNOX-2907
>                 URL: https://issues.apache.org/jira/browse/KNOX-2907
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: cm-discovery
>    Affects Versions: 2.0.0, 1.6.0, 1.6.1
>            Reporter: Sandor Molnar
>            Assignee: Sandor Molnar
>            Priority: Major
>             Fix For: 2.1.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Services without a ServiceModelGenerator are skipped during discovery and 
> never added to the service configuration cache. 
> [https://github.infra.cloudera.com/CDH/knox/blob/d2b5466cb417f7b3882315c3d048d12e3252bb9c/gateway-discovery-cm/src/main/java/org/apache/knox/gateway/topology/discovery/cm/ClouderaManagerServiceDiscovery.java#L304]
> The {{PollingConfigurationAnalyzer}} does not filter the events received from 
> CM and tries to find the source service in the configuration cache, which of 
> course won't be possible due to the above causing non-proxied services to be 
> handled as services newly enabled for proxying.
> [https://github.infra.cloudera.com/CDH/knox/blob/d2b5466cb417f7b3882315c3d048d12e3252bb9c/gateway-discovery-cm/src/main/java/org/apache/knox/gateway/topology/discovery/cm/monitor/PollingConfigurationAnalyzer.java#L267]
> Example services: QUEUEMANAGER (QUEUEMANAGER-1), HIVE_METASTORE (HIVE-1)



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

Reply via email to