I seem to have fixed the resource requests/limits ...
# replication-troubleshooting
m
I seem to have fixed the resource requests/limits for my replication job source container so it doesn't OOM, however I think the previous "silent failures" have left things in a bad state. The sync's all say they are successful, but there is not any data in the target namespace. Furthermore, there are only 3 streams that are getting queued/ran, the rest say "Queued for next sync". Finally, it seems like the airbyte_internal.namespace_raw__stream_* tables are persisting after the sync says it is complete and no replication is job is running. These still have data in them and end up getting about the same number of rows added to them. I tried clearing the data and then doing a sync, but it again only does 3 of 7 streams, the first sync took 1hr 17 minutes, and the second sync is still "running" going on 1.5 hours and seems to be stuck with the three streams still in "syncing" state but saying "X records loaded" and the number of rows in the raw stream tables are not changing. Should I be manually wiping any (other) tables that the "Clear Data" button didn't do to get it to properly sync everything?
k
Based on the knowledge sources, it appears you're experiencing issues related to incomplete syncs and lingering temporary tables. Here's what I can tell you: ## About the "Clear Data" functionality The [Clear Data operation](https://docs.airbyte.com/platform/operator-guides/clear) removes records from your destination tables but does not remove the tables themselves - they are only emptied. The documentation states: "When clearing data is successfully completed, all the records are deleted from your destination tables... The tables are not removed, they will only be emptied." ## Temporary tables and failed syncs Your observation about
airbyte_internal
raw tables persisting is consistent with known behavior. According to [this forum discussion](https://discuss.airbyte.io/t/2067), when syncs fail, data is stored in
_airbyte_tmp_*
tables. The knowledge sources indicate that temporary tables are not automatically deleted when syncs fail - they are only cleaned up after a successful sync completes. One user reported a similar issue where [thousands of temporary tables were created](https://discuss.airbyte.io/t/2552) after failed syncs, with the explanation that "when a sync fails, temp tables are not deleted." ## Potential resolution steps Based on the knowledge sources, if you have a failed clearing of data, you should manually drop the tables in the destination so that Airbyte can continue syncing accurately. The documentation states: "To resolve a failed clearing of data, you should manually drop the tables in the destination so that Airbyte can continue syncing accurately into the destination." However, the knowledge sources don't explicitly detail which specific tables beyond the destination tables need to be manually cleaned up in your scenario with the
airbyte_internal
raw tables persisting. ## Streams not syncing Regarding only 3 of 7 streams syncing, there are [similar reports](https://discuss.airbyte.io/t/2049) of syncs completing without failure but not all streams getting synced. In those cases, the affected tables appeared in logs but didn't complete the sync process. I'm sorry, but the knowledge sources don't provide specific guidance on manually cleaning up the
airbyte_internal.namespace_raw__stream_*
tables or resolving the "Queued for next sync" state for the remaining streams in your specific situation.