Skip to content

Dishonest schema reload timeout #320

@DifferentialOrange

Description

@DifferentialOrange

There is a problem with this timeout:

local function call_reload_schema(replicasets)
    for _ = 1,replicasets_num do
        if channel:get(const.RELOAD_SCHEMA_TIMEOUT) == nil then
            for _, f in ipairs(fibers) do
                if fiber:status() ~= 'dead' then
                    f:cancel()
                end
            end
            return nil, ReloadSchemaError:new("Reloading schema timed out")
        end
    end
...
end

replicasets_num * const.RELOAD_SCHEMA_TIMEOUT may require much more time than const.RELOAD_SCHEMA_TIMEOUT

Originally posted by @oleg-jukovec in #319 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions