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

Clock skew config #2119

Merged
merged 12 commits into from
Mar 10, 2020
Merged

Conversation

joe-elliott
Copy link
Member

Which problem is this PR solving?

Short description of the changes

  • Added duration parameter query.max-clock-skew-adjust
  • Wiring to pass into adjusters.ClockSkew()
  • Tests to confirm functionality

Note that I consolidated the creation of QueryServiceOptions in the cmd/query/app package. I don't necessarily think this is a great place for it, but I struggled to find a better one. If you have recommendations please let me know.

@joe-elliott joe-elliott requested a review from a team as a code owner March 10, 2020 00:13
cmd/query/app/flags.go Outdated Show resolved Hide resolved
model/adjuster/clockskew.go Outdated Show resolved Hide resolved
cmd/query/app/util.go Outdated Show resolved Hide resolved
cmd/query/app/util.go Outdated Show resolved Hide resolved
model/adjuster/clockskew.go Outdated Show resolved Hide resolved
model/adjuster/clockskew.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Mar 10, 2020

Codecov Report

Merging #2119 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2119      +/-   ##
==========================================
+ Coverage    96.1%   96.13%   +0.02%     
==========================================
  Files         217      218       +1     
  Lines       10538    10564      +26     
==========================================
+ Hits        10128    10156      +28     
+ Misses        354      353       -1     
+ Partials       56       55       -1
Impacted Files Coverage Δ
cmd/query/app/util.go 100% <ø> (ø) ⬆️
cmd/query/app/flags.go 100% <100%> (ø) ⬆️
cmd/query/app/querysvc/adjusters.go 100% <100%> (ø)
model/adjuster/clockskew.go 100% <100%> (ø) ⬆️
cmd/query/app/querysvc/query_service.go 100% <100%> (ø) ⬆️
cmd/query/app/server.go 94.52% <0%> (+2.73%) ⬆️

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 602cdf4...a6f1969. Read the comment docs.

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

one small nit, since it affects public api

cmd/query/app/flags.go Outdated Show resolved Hide resolved
Signed-off-by: Joe Elliott <[email protected]>
@yurishkuro
Copy link
Member

Can we get code coverage up?

@joe-elliott
Copy link
Member Author

Test pushed that should raise coverage. It's a bit trivial as it just asserts nil and non-nil fields on the QueryServiceOptions struct after building.

@yurishkuro yurishkuro merged commit 32d667e into jaegertracing:master Mar 10, 2020
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.

Restrict clock skew adjustment to a certain max delta
2 participants