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

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

                Author: ASF GitHub Bot
            Created on: 15/Aug/23 12:56
            Start Date: 15/Aug/23 12:56
    Worklog Time Spent: 10m 
      Work Description: zeroflag opened a new pull request, #785:
URL: https://github.com/apache/knox/pull/785

   ## What changes were proposed in this pull request?
   
   (Please fill in changes proposed in this fix)
   
   ## How was this patch tested?
   
   gateway-site.xml
   
   ```xml
   <property>
       <name>gateway.cloudera.manager.descriptors.monitor.interval</name>
       <value>5000</value>
   </property>
   ```
   
   Create a descriptor + topology via hadoop xml resource.
   
   ```xml
    <configuration>
       <property>
           <name>topology3</name>
           <value>
               providerConfigRef=prov#
               app:knoxauth:param1.name=param1.value#
               app:admin-ui#
               HIVE:url=http://localhost:456#
               HIVE:version=1.0#
               HIVE:httpclient.connectionTimeout=5m#
               HIVE:httpclient.socketTimeout=100m
           </value>
       </property>
       <property>
           <name>providerConfigs:prov</name>
           <value>any</value>
       </property>
   </configuration>
   ```
   
   Delete descriptor (+topology):
   
   ```xml
   <configuration>
       <property>
           <name>topology3</name>
           <value>
               remove
           </value>
       </property>
       <property>
           <name>providerConfigs:prov</name>
           <value>any</value>
       </property>
   </configuration>
   ```
   
   Check logs + file system
   
   ```
   2023-08-15 14:49:50,131  INFO  knox.gateway 
(HadoopXmlResourceMonitor.java:processDeleted(123)) - Deleting file 
/Users/attilamagyar/development/test/conf/topologies/topology3.xml
   2023-08-15 14:49:50,131  INFO  knox.gateway 
(HadoopXmlResourceMonitor.java:processDeleted(123)) - Deleting file 
/Users/attilamagyar/development/test/conf/descriptors/topology3.json
   ```




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

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

> Topology file is not deleted after deleting descriptor via hadoop xml resource
> ------------------------------------------------------------------------------
>
>                 Key: KNOX-2949
>                 URL: https://issues.apache.org/jira/browse/KNOX-2949
>             Project: Apache Knox
>          Issue Type: Bug
>            Reporter: Attila Magyar
>            Assignee: Attila Magyar
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The monitor doesn't pick up the descript delete event because the hadoop xml 
> file is parsed earlier.



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

Reply via email to