You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by GitBox <gi...@apache.org> on 2022/09/27 11:33:44 UTC

[GitHub] [inlong] gosonzhang opened a new issue, #6040: [Bug][DataProxy] DataProxy does not fully update the configurations

gosonzhang opened a new issue, #6040:
URL: https://github.com/apache/inlong/issues/6040

   ### What happened
   
   The method "/inlong/manager/openapi/dataproxy/getConfig" uses the pull mode to obtain full configuration information from the Manager, but saves the configuration information in incremental mode instead of replacement mode[1][2], so that the deleted configuration is still used.
   
   1. https://github.com/apache/inlong/blob/master/inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/config/ConfigManager.java#L331
   ![image](https://user-images.githubusercontent.com/14038849/192514023-a44af04d-580a-4cd1-bf5b-0b8e89fc7073.png)
   
   2. https://github.com/apache/inlong/blob/master/inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/config/ConfigManager.java#L138
   ![image](https://user-images.githubusercontent.com/14038849/192514198-1fd6820b-c7b2-4aaa-911f-53cfa62daf02.png)
   
   
   ### What you expected to happen
   
   replace, not append
   
   ### How to reproduce
   
   1. add topics: a, b, c
   2. remove topic: b
   3. add topic: d
   
   The topic b not be reomved
   
   ### Environment
   
   Linux
   
   ### InLong version
   
   master
   
   ### InLong Component
   
   InLong DataProxy
   
   ### Are you willing to submit PR?
   
   - [X] Yes, I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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@inlong.apache.org.apache.org

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


[GitHub] [inlong] gosonzhang closed issue #6040: [Bug][DataProxy] DataProxy does not fully update the configurations

Posted by GitBox <gi...@apache.org>.
gosonzhang closed issue #6040: [Bug][DataProxy] DataProxy does not fully update the configurations
URL: https://github.com/apache/inlong/issues/6040


-- 
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@inlong.apache.org

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