Skip to content

How to handle "Mismatch migrating slot" state #282

@travisshivers

Description

@travisshivers

I have encountered situations where the controller gets into a situation where its stored state about the migration isn't what the shard node reports.

if sourceNodeClusterInfo.MigratingSlot != shard.MigratingSlot {
log.Error("Mismatch migrating slot",
zap.Int("source_migrating_slot", sourceNodeClusterInfo.MigratingSlot),
zap.Int("migrating_slot", shard.MigratingSlot),
)
return
}

In this case, it isn't able to do anything and just keeps printing this message and there doesn't look like there is any API to recover from this in the controller.
Should the controller accept the migration status from the node?

This appears to happen if the node crashes immediately at the start of migration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions