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

Bootstrap produced invalid partition map #8

Open
jcjones opened this issue Apr 26, 2021 · 0 comments
Open

Bootstrap produced invalid partition map #8

jcjones opened this issue Apr 26, 2021 · 0 comments

Comments

@jcjones
Copy link
Collaborator

jcjones commented Apr 26, 2021

For the map of

ENGINE=InnoDB AUTO_INCREMENT=35314177 DEFAULT CHARSET=utf8
 PARTITION BY RANGE (`id`)
(PARTITION `p_20200101` VALUES LESS THAN (198275340) ENGINE = InnoDB,
 PARTITION `p_20210125` VALUES LESS THAN (200086837) ENGINE = InnoDB,
 PARTITION `p_20210128` VALUES LESS THAN MAXVALUE ENGINE = InnoDB) |

we produced the output

# INFO:calculate_sql_alters:Table authz2, 83.6 hours, [33258619] - [35273169], [2014550] pos_change, [24089.703719704677]/hour
ALTER TABLE `authz2` REORGANIZE PARTITION `p_20210128` INTO (PARTITION `p_20210426` VALUES LESS THAN (35321348), PARTITION `p_20210526` VALUES LESS THAN (52665935), PARTITION `p_20210625` VALUES LESS THAN (70010521), PARTITION `p_20210725` VALUES LESS THAN MAXVALUE);

which failed to take into account the prior partitions, and was invalid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant