Skip to content

Commit

Permalink
Airbyte-API: Propagate read timeout and increase timeout limit (#8649)
Browse files Browse the repository at this point in the history
  • Loading branch information
terencecho committed Sep 1, 2023
1 parent 3b9f825 commit b13785c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ class JobServiceImpl(private val configApiClient: ConfigApiClient, val userServi
} catch (e: HttpClientResponseException) {
log.error("Config api response error for job sync: ", e)
e.response as HttpResponse<JobInfoRead>
} catch (e: ReadTimeoutException) {
log.error("Config api response error for job sync: ", e)
throw UnexpectedProblem(
HttpStatus.REQUEST_TIMEOUT,
"Request timed out. Please check the latest job status to determine whether the sync started.",
)
}
ConfigClientErrorHandler.handleError(response, connectionId.toString())
log.debug(HTTP_RESPONSE_BODY_DEBUG_MESSAGE + response.body())
Expand Down
2 changes: 1 addition & 1 deletion airbyte-api-server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ micronaut:
idle-timeout: ${HTTP_IDLE_TIMEOUT:5m}
http:
client:
read-timeout: 20s
read-timeout: 150s
max-content-length: 52428800 # 50MB

airbyte:
Expand Down

0 comments on commit b13785c

Please sign in to comment.