:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(data-imports): stop retrying batches when object storage is full (#79180)
Tom Owersf6fe2394dc95
diff --git a/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/postgres_queue/consumer.py b/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/postgres_queue/consumer.pyindex e8acf1503d32..f12fa588b777 100644--- a/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/postgres_queue/consumer.py+++ b/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/postgres_queue/consumer.py@@ -87,6 +87,9 @@ NON_RETRYABLE_ERROR_PATTERNS: tuple[str, ...] = (# the schema or job row was deleted mid-sync — no retry can bring it back"ExternalDataSchema matching query does not exist","ExternalDataJob matching query does not exist",+ # self-hosted object storage (MinIO) has hit its minimum free drive threshold and is+ # refusing writes — every retry hits the same full disk until an operator frees space+ "XMinioStorageFull",)# Subset of the non-retryable errors that are expected upstream/customer conditions rather thandiff --git a/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/postgres_queue/test_consumer.py b/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/postgres_queue/test_consumer.pyindex 25fa5e202a2b..16d4502af999 100644--- a/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/postgres_queue/test_consumer.py+++ b/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/postgres_queue/test_consumer.py@@ -154,6 +154,8 @@ class TestProcessSingle:"20009.59457503306999908717 is too large to store in a Decimal128 of precision 24.","Primary key required for incremental syncs","Source column type changed: 'price' has values that no longer fit its stored type int64",+ "[Errno 5] An error occurred (XMinioStorageFull) when calling the CopyObject operation: "+ "Storage backend has reached its minimum free drive threshold. Please delete a few objects to proceed.",],)@pytest.mark.asyncio@@ -191,6 +193,13 @@ class TestProcessSingle:("ExternalDataSchema matching query does not exist.", False),# A genuine non-retryable failure must still surface so real bugs aren't hidden.("20009.59 is too large to store in a Decimal128 of precision 24.", True),+ # Storage backend out of disk space is an operational condition operators need to+ # act on, not a customer-caused error — it must keep going to error tracking.+ (+ "[Errno 5] An error occurred (XMinioStorageFull) when calling the CopyObject operation: "+ "Storage backend has reached its minimum free drive threshold. Please delete a few objects to proceed.",+ True,+ ),],)@pytest.mark.asyncio