Skip to content

Zero-ETL for DynamoDB stopped working after Redshift maintenance

0

One of our zero-ETL for DynamoDB integrations stopped working during planned Redshift maintenance on November 22. After the maintenance completed, querying one of the tables gave the following error message:

The table "t_rslocal_localhost@52617409@52134921@" is not available for querying right now. Make sure the state of your table is synced. See SVV_INTEGRATION_TABLE_STATE for more information. Run ALTER DATABASE with QUERY_ALL_STATES=TRUE in the integration database to allow querying tables in all states.

I couldn't repair the integration using the INERROR option. Specifying an individual table seemed to work and initiate a resync. After a couple of minutes, the integration recovered and was back in the good 'synced' state.

ALTER DATABASE [...] INTEGRATION REFRESH INERROR TABLES in SCHEMA public;
-- ❌ [0A000] ERROR: Failed to alter Zero-ETL integration for db 52614612

ALTER DATABASE [...]  INTEGRATION REFRESH TABLE public.[...];
-- ✅

We have a couple other zero-ETL for DynamoDB integrations and those didn't experience the same problem. We've also never experienced this problem before, so it seems like a race-condition that infrequently occurs.

The version number of our Redshift provisioned cluster seems to coincide with patch 196 that was released November 19, 2025.

SELECT version();
-- PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.163480

What could cause the zero-ETL for DynamoDB integration to fail? Is there something we can do to prevent it?

EDIT Nov 24: The integration stopped working again with the same error. This time, it broke outside the maintenance window. So it doesn't seem related to Redshift being temporarily unavailable.

asked a year ago267 views

1 Answer
0

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:

  1. 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.

  2. 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.

  3. 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:

  1. Always ensure PITR remains enabled on your DynamoDB tables.

  2. Before planned maintenance, document the state of your integrations so you can quickly identify and fix any issues afterward.

  3. After maintenance, proactively check SVV_INTEGRATION_TABLE_STATE to identify any tables that need attention.

  4. Have ready-to-run scripts with the appropriate ALTER DATABASE commands to refresh specific tables or schemas if needed.

  5. 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

  • 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.