- Newest
- Most votes
- Most comments
Based on your description, it appears you're experiencing an issue with source table header replication when using AWS DMS version 3.6.1 specifically with MariaDB as a source, while the same configuration works with PostgreSQL sources.
This behavior could be related to how different database sources handle metadata during the replication process. By default, headers for source tables aren't replicated to the target, and you need to use transformation rules with expressions that include the table column header to indicate which headers to replicate.
When using MariaDB as a source, there are some specific limitations that might affect header replication. For example, AWS DMS does not support views migration for MariaDB, and there are limitations around temporal data tables. Additionally, the way MariaDB handles binary logging (which is essential for CDC) differs from PostgreSQL's logical replication mechanism.
For the specific header AR_H_TIMESTAMP, this should contain a timestamp indicating the time of the change during ongoing replication, or the current time data arrives at the target during full load. The data type for this header is DATETIME with a scale of 7.
To troubleshoot this issue:
- Verify that your transformation rule is correctly configured to add the
AR_H_TIMESTAMPcolumn - Check if there are any errors or warnings in the CloudWatch logs (search for "]E:" for errors and "]W:" for warnings)
- Ensure that binary logging is properly enabled on your MariaDB source with
binlog_formatset toROW - Confirm that the AWS DMS user has all the required permissions on the MariaDB source
If the issue persists, you might need to consider either reverting to DMS version 3.5.3 for your MariaDB migrations or opening a support case with AWS to investigate if there's a specific compatibility issue between DMS 3.6.1 and MariaDB source table headers.
Sources
Using transformation rule expressions to define column content - AWS Database Migration Service
Using a MySQL-compatible database as a source for AWS DMS - AWS Database Migration Service
Postgres to Redshift Full Load and CDC does not capture updates | AWS re:Post
DMS Migration Task(only CDC) for Ongoing Replication Type, Migration progress struck at 0% | AWS re:Post
Relevant content
- asked 2 years ago
