Skip to content

Migrations do not apply on new replicasets in cluster #65

Closed
@opomuc

Description

@opomuc

When scaling cluster horizontally and adding new replicasets -- they do not have migrations applied.

This means, for example, if a box.schema.func has been created in a migrations, the new replicaset won't have it.

Steps to reproduce:

  1. Create a Tarantool Cartridge cluster
  2. Run migration
return {
    up = function()
        box.schema.func.create('is_expired_code', {body = [[
            function(args, tuple)
                -- уточнить условия экспирации
                return false
            end
        ]]})
        return true
    end
}
  1. Add a new replicaset to the cluster
  2. Wait for it to start and be running
  3. Check box.space._func.index.name:get('is_expired_code') on the new replicaset to see if it has the function is_expired_code

Metadata

Metadata

Assignees

Labels

5spbugSomething isn't workingteamE

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions