Xuxiaotuan opened a new pull request, #3529:
URL: https://github.com/apache/incubator-streampark/pull/3529

   The initialization of the configuration comes before the bean is loaded
   
   ## What changes were proposed in this pull request
   
   Issue Number: close #3494 
   
   <!--(For example: This pull request proposed to add checkstyle plugin).-->
   
   ## Brief change log
   
   The initial configuration load consists of two parts:
    - 1. one is the native java and scala default configuration
    - 2. the other is the environment variable passed into the 
ApplicationContext via yaml or parameter configuration
   
   The current streampark flushes the yaml configuration into the global 
configuration cache after springboot starts. 
   
   As a result, during bean initialization, if you want to use yaml or 
parameter configuration to pass the value, 
   
   it will fail, and the default value will be used instead.
   
   I recommend that the initialization of the configuration cache be advanced 
to before the bean is loaded
   
   ## Verifying this change
   
   This change is a trivial rework / code cleanup without any test coverage.
   
   <!--*(example:)*
   - *Added integration tests for end-to-end.*
   - *Added *Test to verify the change.*
   - *Manually verified the change by testing locally.* -->
   
   ## Does this pull request potentially affect one of the following parts
    - Dependencies (does it add or upgrade a dependency): no
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to