- Newest
- Most votes
- Most comments
When a Redshift cluster undergoes maintenance, it can occasionally disrupt zero-ETL integrations with DynamoDB, causing tables to enter states where they're unavailable for querying. This appears to be what happened in your case.
The error message indicates that your table was in a state other than "Synced" after the maintenance. The SVV_INTEGRATION_TABLE_STATE system view would show the specific state of your table, which was likely in an error state or required resynchronization.
Several factors could cause a zero-ETL integration to fail during or after maintenance:
-
Point-in-Time Recovery (PITR) status: If PITR was temporarily disabled during the maintenance window, this would affect the integration since PITR is required for DynamoDB to export data to Redshift. If PITR is ever turned off while the integration is active, the integration can fail.
-
Permission or encryption issues: If the maintenance affected permissions or encryption settings, this could disrupt the integration, especially if your DynamoDB table is encrypted with a customer-managed KMS key.
-
Race conditions during cluster restart: As you suspected, there might be race conditions during the restart phase of maintenance that can occasionally affect some integrations but not others.
To prevent similar issues in the future:
-
Always ensure PITR remains enabled on your DynamoDB tables.
-
Before planned maintenance, document the state of your integrations so you can quickly identify and fix any issues afterward.
-
After maintenance, proactively check SVV_INTEGRATION_TABLE_STATE to identify any tables that need attention.
-
Have ready-to-run scripts with the appropriate ALTER DATABASE commands to refresh specific tables or schemas if needed.
-
For critical integrations, consider testing the refresh commands in a non-production environment after maintenance to understand the behavior.
The fact that refreshing individual tables worked while the INERROR option failed suggests there might have been an issue with the bulk refresh operation. Using targeted refresh commands for specific tables, as you discovered, is a good approach when the broader refresh commands fail.
Sources
Troubleshooting zero-ETL integrations - Amazon Redshift
DynamoDB zero-ETL integration with Amazon Redshift - Amazon DynamoDB
answered a year ago
Relevant content
asked 8 months ago
asked 3 years ago

We didn't adjust any settings of the DynamoDB table; PITR was enabled before and remained enabled throughout. Furthermore, we monitor the system tables so we're alerting when an integration enters a bad state. What I find odd is that an integration can, seemingly random, break.