Sandor Molnar created KNOX-2907:
-----------------------------------
Summary: 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: 1.6.0, 2.0.0, 1.6.1
Reporter: Sandor Molnar
Assignee: Sandor Molnar
Fix For: 2.1.0
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)