spring-cloud-commons icon indicating copy to clipboard operation
spring-cloud-commons copied to clipboard

Detect dynamic mgmt port. Fixes gh-561

Open chriswhite199 opened this issue 6 years ago • 7 comments

Ignoring the checkstyle auto-fixed whitespace changes, see:

  • spring-cloud-commons/src/main/java/org/springframework/cloud/client/serviceregistry/AbstractAutoServiceRegistration.java - Capture management web server init event & wait for ApplicationReadyEvent before starting registration (to ensure that http & optional mgmt ports have been discovered)
  • spring-cloud-commons/src/test/java/org/springframework/cloud/client/serviceregistry/AbstractAutoServiceRegistrationMgmtDisabledTests.java - updated correct property for mgmt port
  • spring-cloud-commons/src/test/java/org/springframework/cloud/client/serviceregistry/AbstractAutoServiceRegistrationTests.java - updated correct property for mgmt port

chriswhite199 avatar May 01 '19 05:05 chriswhite199

I'm afraid we need to revert all the formatting changes

spencergibb avatar May 01 '19 11:05 spencergibb

@spencergibb - so what am i doing wrong when running mvn install, as that appears to be the cause of the re-formatting. I'll revert the whitespace changes

chriswhite199 avatar May 01 '19 20:05 chriswhite199

Nothing wrong. We just need to apply the formatting separately.

spencergibb avatar May 01 '19 20:05 spencergibb

Reverted via 4995ffc88adb2e867289c6694113c72d7dd7fe30.

In spring-cloud-consul, tests started failing as start() was called before bind().

spencergibb avatar Mar 16 '21 01:03 spencergibb

Hi! As you probably know, this PR introduces some breaking changes. Our academic tool, BreakBot, helps developers better assess the impact of these changes on client projects. BreakBot checked the top 100 most starred clients of spring-cloud-commons on GitHub and found out that only one (indeed spring-cloud-consul) is impacted by one of the breaking changes.

You can find the full BreakBot report in our fork repository breakbot-playground/spring-cloud-commons.

We hope this information about the impact of this PR's changes is valuable to you, and apologize otherwise. If you're willing to help, we would kindly ask for your help to fill in a 5-minutes survey about the report. Your feedback will help us improve the tool and help us in our research!

lmove avatar Nov 30 '22 12:11 lmove

@lmove please stop adding these comments across spring cloud projects.

spencergibb avatar Nov 30 '22 13:11 spencergibb

@lmove please stop adding these comments across spring cloud projects.

Hi @spencergibb, didn't mean to bother you. As stated in my comment, this is part of our research to support OSS projects and we just wanted to know if the BreakBot reports could be useful for library maintainers. It was not our intention to bother you. Sorry if that was the case. Following your reaction, we will take out all spring-cloud projects from the reports generation and won't consider them in our survey. Have a good day.

lmove avatar Nov 30 '22 13:11 lmove