airbyte icon indicating copy to clipboard operation
airbyte copied to clipboard

`source-postgres` : Throw a configuration error for "temporary file size exceeds temp_file_limit" error

Open akashkulk opened this issue 2 years ago • 2 comments

Topic

Postgres connector

Revelant information

Context : OC issue https://github.com/airbytehq/oncall/issues/1822

Use the config error message framework to point users towards the documentation of how to increase the temporary file size : https://docs.airbyte.com/integrations/sources/postgres/#temporary-file-size-limit

akashkulk avatar Jun 06 '23 22:06 akashkulk

Hello @akashkulk, I would love to try and contribute to this issue, however the context link is private I guess, is this available for PR? thx and have a great day ;)

moreaupascal56 avatar Jun 12 '23 11:06 moreaupascal56

I think this might actually want to be a TRANSIENT_ERROR

evantahler avatar Apr 11 '24 04:04 evantahler

This bug was reported last year. Thanks to the recent improvements on reliable data reading in postgres source, it seems I can no longer reproduce this issue. However, the temp_file_limit issue still gets reported as a system error at destination side. This is discovered when I was testing pg <-> pg sync.

for instance,

2024-05-24 17:03:40 platform > failures: [ {
  "failureOrigin" : "destination",
  "failureType" : "system_error",
  "internalMessage" : "java.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR: temporary file size exceeds temp_file_limit (0kB)",
  "externalMessage" : "Something went wrong in the connector. See the logs for more details.",
  "metadata" : {
    "attemptNumber" : 9,
    "jobId" : 15,
    "from_trace_message" : true,
    "connector_command" : "write"
  },

I agree with @evantahler , this error should be a transient error. A config error is related to the misconfiguration of our own software, not the database itself. I will send a quick pr to make it a transient error.

theyueli avatar May 26 '24 10:05 theyueli