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

Several vshard reconfiguration steps broke rebalancing #1667

Closed
yngvar-antonsson opened this issue Dec 24, 2021 · 4 comments
Closed

Several vshard reconfiguration steps broke rebalancing #1667

yngvar-antonsson opened this issue Dec 24, 2021 · 4 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@yngvar-antonsson
Copy link
Collaborator

yngvar-antonsson commented Dec 24, 2021

While trying to fix #1569 we've found that the test is flaky as a result of a bug.
After several vshard reconfiguration steps rebalancer breaks with some buckets stuck in state sending.

Repro:

local rebalancer = g.SA1.instance_uuid < g.SB1.instance_uuid and
        g.SA1 or g.SB1
local resp = g.cluster.main_server:graphql({query = [[
        mutation ($uuid: String!){
            edit_replicaset(
                uuid: $uuid
                weight: 2
            )
        }
    ]], variables = {uuid = g.SA1.replicaset_uuid}})

    t.assert_not(resp.errors)
    local resp = g.cluster.main_server:graphql({query = [[
        mutation ($uuid: String!){
            edit_replicaset(
                uuid: $uuid
                weight: 1
            )
        }
    ]], variables = {uuid = g.SA1.replicaset_uuid}})
    t.assert_not(resp.errors)

    local resp = g.cluster.main_server:graphql({query = [[
        mutation ($uuid: String!){
            edit_replicaset(
                uuid: $uuid
                weight: 2
            )
        }
    ]], variables = {uuid = g.SA1.replicaset_uuid}})
    t.assert_not(resp.errors)

    helpers.retrying({}, function()
        rebalancer:call('vshard.storage.rebalancer_wakeup')
        t.assert_equals(g.SA1:call('vshard.storage.buckets_count'), 2000)
        t.assert_equals(g.SB1:call('vshard.storage.buckets_count'), 1000)
    end)

Error:

./test/hotreload/vshard_test.lua:194: expected: 2000, actual: 1500
@R-omk
Copy link
Contributor

R-omk commented May 24, 2022

Is it still actual?

@yngvar-antonsson yngvar-antonsson self-assigned this Jun 9, 2022
@Gerold103
Copy link

Not blocked anymore.

@yngvar-antonsson yngvar-antonsson added help wanted Extra attention is needed and removed blocked Not ready to be implemented labels Jul 27, 2022
@yngvar-antonsson
Copy link
Collaborator Author

Still reproducible.

@filonenko-mikhail
Copy link
Collaborator

#1898

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants