Config server requires restart for new remote repos
See original GitHub issueI am using Brixton.M2 and I noticed some behavior that was unexpected to me.
I started my config server, it was serving requests fine. Then I pushed a new branch to my git repo that the config server is using. I tried retrieving a plain text file (using the ResourceController’s endpoint) with the new branch as the label. The config server cannot find the label and returns an error to that effect. I thought this was strange. I sent a POST request to the config server’s /refresh
endpoint thinking this might cause it to pull from the remote. However, it continues to not be able to find the new label until I restart the config server.
It would be nice if a full server restart were not required to serve newly pushed branches.
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
2. Spring Cloud Config Server
By default, the server clones remote repositories when configuration is first ... forever or till the next server restart (which creates new local...
Read more >How to prevent Spring Config to reset my local git repository to ...
I have configured Spring Config microservice local profile to get the config from my local git, (file:) and not to be HTTP git...
Read more >Spring Cloud Config Server — Programmer Gate - DZone
Refresh the configuration dynamically without the need to restart each service after a configuration change.
Read more >SPRING CLOUD CONFIG SERVER. PROBLEM | by Smriti mool
If we change the properties we need to restart the application to use the updated configuration properties. Also, in the context of large...
Read more >Quick Intro to Spring Cloud Configuration - Baeldung
To complete our server, we have to initialize a Git repository under the configured url, create some new properties files, and populate them...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This works for me now in 1.4.0 snapshots. I assume it was fixed as a side effect (maybe with #439).
@haripriya-apptium please dont randomly comment on issues. Please open a new issue if you are having an issue, and provide as much information as possible so we can evaluate what might be wrong.