Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-2907

Events related to non-proxied services cause Knox to perform a topology redeploy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0, 1.6.0, 1.6.1
    • 2.1.0
    • cm-discovery
    • None

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              smolnar Sandor Molnar
              smolnar Sandor Molnar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m