-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates to Armeria 1.27.1 and fixes Eureka VIP registration bug #3715
Conversation
This updates to latest Armeria 1.27.0, which removes some tech debt. This also fixes a bug in the default behavior of Armeria, which is that it sets a `host:port` value for the VIP address in Eureka. While the `instanceId` needs to be qualified with port, the VIP address must not, as there's already a port field. Signed-off-by: Adrian Cole <[email protected]>
Signed-off-by: Adrian Cole <[email protected]>
tomorrow I'll raise a PR on the armeria side about the bad default on vipAddress, which shouldn't be host like http host header, rather a host like dns hostname. |
zipkin-server/src/test/java/zipkin2/server/internal/eureka/BaseITZipkinEureka.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Adrian Cole <[email protected]>
line/armeria#5451 should fix upstream |
@@ -60,7 +59,8 @@ | |||
"zipkin.storage.type=", // cheat and test empty storage type | |||
"zipkin.collector.http.enabled=false", | |||
"zipkin.query.enabled=false", | |||
"zipkin.ui.enabled=false" | |||
"zipkin.ui.enabled=false", | |||
"zipkin.discovery.eureka.hostname=localhost" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran ./gradlew install
from line/armeria#5451 and set the armeria version to what it produced (1.27.2-SNAPSHOT). Then, I removed this property and the results of the tests were expected, with my machine's hostname in the instanceId (along with the port), and my machine's hostname without the port as the vipAddress
Signed-off-by: Adrian Cole <[email protected]>
Thanks for the review @reta! |
This updates to latest Armeria 1.27.0, which removes some tech debt. This also fixes a bug in the default behavior of Armeria, which is that it sets a
host:port
value for the VIP address in Eureka. While theinstanceId
needs to be qualified with port, the VIP address must not, as there's already a port field.cc @openzipkin/armeria