Skip to content

fiber.yield() call removed from quantile #241

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

Merged
merged 9 commits into from
May 24, 2021
Merged

Conversation

yngvar-antonsson
Copy link
Collaborator

@yngvar-antonsson yngvar-antonsson commented May 19, 2021

fiber.yield() call leads to quantile overflow and segfault.
Unfortunately, test that shows overflow is highly stressed and can't be run with other tests. You can see repro run in actions history. I also moved that test to release stage.
I didn't forget about

  • Tests
  • Changelog

Close #235

@filonenko-mikhail
Copy link
Contributor

lgtm

@filonenko-mikhail filonenko-mikhail mentioned this pull request May 20, 2021
4 tasks
for _=1,500 do
fiber.create(function()
for _=1,1e2 do
t.assert(q1.b_len < q1.__max_samples)
Copy link
Contributor

Choose a reason for hiding this comment

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

is it possible to reduce test execution time with reduced __max_samples? if this is the case this should be done

@@ -65,3 +67,14 @@ jobs:
run: |
GO111MODULE=on go get github.com/prometheus/prometheus/cmd/promtool@a6be548dbc17780d562a39c0e4bd0bd4c00ad6e2
make test_promtool
stress-test:
Copy link
Contributor

Choose a reason for hiding this comment

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

if it is possible to reduce execution time then we should move this test to unit instead of it's own stage

@yngvar-antonsson yngvar-antonsson merged commit f57e7ea into master May 24, 2021
@yngvar-antonsson yngvar-antonsson deleted the remove-fiber-yield branch May 24, 2021 12:04
@yngvar-antonsson yngvar-antonsson linked an issue May 26, 2021 that may be closed by this pull request
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.

Seems quantile overflow with undefined behaivior Summary counter breaks under high load
3 participants