Garrett Thornburg
09/16/2025, 3:21 PM[ASYNC QUEUE INFO] Global: max: 593.92 MB, allocated: 10 MB (9.9977445602417 MB), % used: 0.016833345242386704 | Queue .................... | State Manager memory usage: Allocated: 9 MB, Used: -2365 bytes, percentage Used -0.000226
It just runs forever and never finishes. It used to take (consistently) ~5 minutes.
I tried deleting the connection and recreating it but that did not work. I also tested each endpoint in the connection builder to see if it had any changes, but it everything works as it should.
There is one table in the connection that has ~140k records so I disabled that and re-ran. It finished but took ages. I saw lots of comments like:
gs://my_bucket/airbyte/my_table/2025/09/16/15/c29bb93c-80dc-47e7-9115-92f43ea8a485/0.csv.gz
gs://my_bucket/airbyte/my_table/2025/09/16/15/c29bb93c-80dc-47e7-9115-92f43ea8a485/1.csv.gz
...
Where there is one file with 42KB of data and then there are like 900 files with 0 bytes.
So, something weird is happening here but I'm not sure what it is.kapa.ai
09/16/2025, 3:21 PMGarrett Thornburg
09/16/2025, 3:23 PMGarrett Thornburg
09/16/2025, 3:45 PMGarrett Thornburg
09/16/2025, 3:46 PMgsutil ls -r gs://my_bucket/airbyte | grep airbyte_internal_my_prefix_ | grep 2.csv | xargs gsutil stat | grep Content-Leng
Content-Length: 0
Content-Length: 0
Content-Length: 0
Content-Length: 0
Content-Length: 0
Content-Length: 0
Content-Length: 0
Content-Length: 0Garrett Thornburg
09/16/2025, 3:46 PMGarrett Thornburg
09/16/2025, 4:02 PMGarrett Thornburg
09/16/2025, 4:04 PMHenry Mattingly
09/16/2025, 6:02 PM[ASYNC QUEUE INFO] Global: max: 593.92 MB, allocated: 10 MB (9.9977445602417 MB), % used: 0.016833345242386704 | Queue .................... | State Manager memory usage: Allocated: 9 MB, Used: -2365 bytes, percentage Used -0.000226
The negative values for used memory and percentage used are particularly concerning and might indicate a bug in the memory management or reporting.
2. Empty Tables and Zero-Byte Files:
The presence of numerous zero-byte files (900 files with 0 bytes) alongside a single file with actual data (42KB) suggests that the connector is creating file placeholders but failing to write data to most of them. This could be due to:
• A problem with the data extraction process
• Issues with the file writing mechanism
• Potential rate limiting or API errors that are not being properly handled
3. Stuck Stream:
The fact that removing one specific stream (the one stuck in "extracted" state) allows the connection to sync indicates that this particular stream is causing the issue. This could be due to:
• A change in the API or data structure for this specific stream
• A bug in the connector's code for handling this stream
• An edge case in the data that the connector isn't prepared to handle
To address these issues, here are some steps you can take:
1. Review Connector Logs:
Examine the detailed logs for the problematic stream. Look for any error messages, warnings, or unusual patterns that might explain why it's getting stuck.
2. Check for API Changes:
Verify if there have been any recent changes to the API you're connecting to, especially for the problematic stream. Ensure your connector is still compatible with the current API version.
3. Validate Data Structure:
Examine the data in the problematic stream. Look for any unusual records, data types, or volumes that might be causing issues.
4. Update Connector Builder:
If you're using an older version of the connector builder, consider updating to the latest version. There might be bug fixes or improvements that address your issue.
5. Adjust Batch Size or Rate Limiting:
Try adjusting the batch size for data extraction or implementing rate limiting if it's not already in place. This could help if the issue is related to processing large volumes of data.
6. Memory Management:
The unusual state manager memory usage suggests a potential memory management issue. Review your connector's code for any memory leaks or inefficient memory usage, especially in the problematic stream.