• Nayuta Yanagisawa's avatar
    MDEV-26127 Assertion `err != DB_DUPLICATE_KEY' failed or InnoDB: Failing... · e077ce2a
    Nayuta Yanagisawa authored
    MDEV-26127 Assertion `err != DB_DUPLICATE_KEY' failed or InnoDB: Failing assertion: id != 0 on ALTER ... REBUILD PARTITION
    
    During rebuild of partition, the partitioning engine calls
    alter_close_table(), which does not unlock and close some table
    instances of the target table.
    Then, the engine fails to rename partitions because there are table
    instances that are still locked.
    
    Closing all the table instance of the target table fixes the bug.
    e077ce2a
partition_alter_maria.result 3.52 KB