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

Failed TestStoreGateway_BlocksSyncWithDefaultSharding_RingTopologyChangedAfterScaleUp #4546

Closed
pracucci opened this issue Nov 3, 2021 · 4 comments

Comments

@pracucci
Copy link
Contributor

pracucci commented Nov 3, 2021

I've just seen this test failing (CI). We should investigate it:

--- FAIL: TestStoreGateway_BlocksSyncWithDefaultSharding_RingTopologyChangedAfterScaleUp (17.94s)
    gateway_test.go:406: random generator seed: 1635936443186330968
    gateway_test.go:496: expected 40, got 16
FAIL
@bboreham
Copy link
Contributor

bboreham commented Nov 4, 2021

Another one https://github.com/cortexproject/cortex/runs/4103618650

--- FAIL: TestStoreGateway_BlocksSyncWithDefaultSharding_RingTopologyChangedAfterScaleUp (18.75s)
    gateway_test.go:406: random generator seed: 1636021349283089808
    gateway_test.go:496: expected 40, got 16
FAIL

@pedro-stanaka
Copy link
Contributor

Had the same running on my local:

?       github.com/cortexproject/cortex/pkg/storage/tsdb/testutil       [no test files]
--- FAIL: TestStoreGateway_BlocksSyncWithDefaultSharding_RingTopologyChangedAfterScaleUp (10.34s)
    gateway_test.go:406: random generator seed: 1638348556975475935
    gateway_test.go:496: expected 40, got 0
FAIL
FAIL    github.com/cortexproject/cortex/pkg/storegateway        170.002s

@bboreham
Copy link
Contributor

bboreham commented Jan 5, 2022

I believe this is caused by the issue identified in grafana/dskit#108 - the test is polling for metrics to update, but they won't update until the 10-second timer. Since it only waits 5 seconds this may not work.

test.Poll(t, 5*time.Second, float64(numAllGateways*numInitialGateways), func() interface{} {

So when we update dskit with the change in grafana/dskit#107 it should be ok.
Update is proposed in #4601.

@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 17, 2022
@stale stale bot closed this as completed May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants