You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "zeroflag (via GitHub)" <gi...@apache.org> on 2023/03/22 11:31:41 UTC

[GitHub] [knox] zeroflag opened a new pull request, #743: KNOX-2891 - Topology is not deployed if the referred provider file is…

zeroflag opened a new pull request, #743:
URL: https://github.com/apache/knox/pull/743

   ## What changes were proposed in this pull request?
   
   There is an ordering issue between the topology server + hadoop xml resource monitor. The topology service is started first, and it'll immediately trigger an onChange event on all descriptors. Hadoop xml resource monitor will create the providers afterwards so it can happen that even the provider is available (in the hxr) the file is not yet generated therefore the topology won't be generated due to the missing provider.
   
   ## How was this patch tested?
   
   1. Created a descriptor with a non existing provider
   
   ```
   sample_topology2
   providerConfigRef=testProviders2##WEBHDFS:url=https://dummy:7189
   ```
   
   2. Restarteed kox
   
   3. Observed the unresolved provider reference message in the log
   
   ```bash
   [root@amagyar-1 ~]# grep "Unresolved provider configuration reference" /var/log/knox/gateway/gateway.log  | wc -l
   1
   ```
   
   4. Added the missing provider
   
   ```
   providerConfigs:testProviders2
   role=authentication#authentication.name=ShiroProvider
   ```
   
   5. Restarted knox
   
   6. No new unresolved  provider reference message, just the old one
   
   ```bash
   [root@amagyar-1 ~]# grep "Unresolved provider configuration reference" /var/log/knox/gateway/gateway.log  | wc -l
   1
   ```
   
   7. Both topology + provider were generateed.
   
   ```bash
   /var/lib/knox/gateway/conf/topologies/sample_topology2.xml
   /var/lib/knox/gateway/conf/shared-providers/testProviders2.json 
   ````
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [knox] zeroflag merged pull request #743: KNOX-2891 - Topology is not deployed if the referred provider file is…

Posted by "zeroflag (via GitHub)" <gi...@apache.org>.
zeroflag merged PR #743:
URL: https://github.com/apache/knox/pull/743


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org