optimize: support configuration metadata read from environment variables #4359
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: slievrly slievrly@163.com
Ⅰ. Describe what this PR did
optimize: support configuration metadata read from environment variables
Seata-Server SpringBoot 适配改造后,元数据配置文件由registry.conf 变更为 application.yml。这个变更导致了
ConfigurationFactory#CURRENT_FILE_INSTANCE
被SpringBootConfigurationProvider
所代理。这将导致未按照AbstractConfiguration#getConfig
的逻辑优先读取环境变量的值。Seata-Server docker作为不可变基础设施,应优先读取环境变量,减少对容器镜像改造的侵入性。
Ⅱ. Does this pull request fix one issue?
ref #3869
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews