- π³πΏNew Zealand quietone
The migrate maintainers work from the 'migration system' component.
When we have a d7 to d8/d9 comment migration where the created datetime is repeated, and we set a batch_size, migrate adds a range to the query that gets the source data. Apparently, that query is also orded by created property, and this makes the range not able to manage which entities with an identical created datetime have been migrated and which have not.
- Build a d7 to d9 comment migration, where some of the source comments have the exact same 'created' property.
- Add an small batch_size to the migration yml.
- Launch the migration and check if all comments where migrated or not.
- If it fails, you should see that some comments are still in the Unprocessed column.
Change the query orderBy from created to cid. In this way we respect the primary key, and also we do not suffer from the problem of ranges in the queries. Furthermore, ordering the comments by cid seems more coherent and correct.
Needs work
11.0 π₯
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
The migrate maintainers work from the 'migration system' component.