Skip to content
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

Allow raw port numbers for UDP servers #2025

Merged
merged 3 commits into from
Jan 16, 2020

Conversation

yurishkuro
Copy link
Member

Currently flags like --processor.jaeger-binary.server-host-port 5001 result in a failure. I think we can be more flexible since in most cases the host is not required, just the port.

Signed-off-by: Yuri Shkuro <ys@uber.com>
return b
}

func toHostPort(v string) string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if someone is running on a IPV6 host with the address of the form 2001:0db8:85a3:0000:0000:8a2e:0370:7334 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so really I was trying to catch a raw number here, so I could instead try Long.parse()

Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
@codecov
Copy link

codecov bot commented Jan 16, 2020

Codecov Report

Merging #2025 into master will decrease coverage by 0.01%.
The diff coverage is 80%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2025      +/-   ##
==========================================
- Coverage   97.41%   97.39%   -0.02%     
==========================================
  Files         207      207              
  Lines       10243    10247       +4     
==========================================
+ Hits         9978     9980       +2     
  Misses        223      223              
- Partials       42       44       +2
Impacted Files Coverage Δ
cmd/agent/app/builder.go 100% <100%> (ø) ⬆️
cmd/agent/app/flags.go 92.3% <66.66%> (-7.7%) ⬇️
cmd/query/app/server.go 91.66% <0%> (-2.78%) ⬇️
...lugin/sampling/strategystore/adaptive/processor.go 100% <0%> (+0.79%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f605a34...39d6776. Read the comment docs.

@yurishkuro yurishkuro merged commit 886b965 into jaegertracing:master Jan 16, 2020
@yurishkuro yurishkuro deleted the allow-standalone-ports branch January 16, 2020 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants