Join Slack
Powered by
<#4880 [BUG] HTTP 403 response is categorized as D...
# flyte-github
c
cuddly-jelly-27016
06/01/2025, 12:12 AM
#4880 [BUG] HTTP 403 response is categorized as Downstream Service Failure and being retried for an hour
Issue created by
rambrus
### Describe the bug Hi Team, We run Spark jobs on Databricks using Flyte. Came across an interesting issue. When we use an expired
Databricks API token
, our Databricks tasks run for an hour and then fail with an error like this:
[image](https://private-user-images.githubusercontent.com/10614761/304099768-f64c011c-5813-4dfa-a8db-7995f0d7ae9c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDg3MzcwMzIsIm5iZiI6MTc0ODczNjczMiwicGF0aCI6Ii8xMDYxNDc2MS8zMDQwOTk3NjgtZjY0YzAxMWMtNTgxMy00ZGZhLWE4ZGItNzk5NWYwZDdhZTljLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA2MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNjAxVDAwMTIxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE4YTg3ODMzMTEzYmE1YjQ3MzM1YWI2YTJkNjk2OTAwYTM5OWRiNGQ1OTMyNDkwMmRhM2JhZjJkNzMzYTg5ODQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.jKbiFN9L98ythBFJ-bsR-axYB8D36dv40F-e4UbBjbI)
I did a quick investigation and found that: • Flyte categorizes the HTTP 403 Forbidden error as a Downstream Service Failure and applies the
Downstream System Retry
here • Task is retried 30 times - I guess this is a default value, since we did not set
MaxNodeRetriesOnSystemFailures
in our FlyteProperrel config This results in a pretty bad user experience becasues in some cases, users override the global Databricks API token with their own token in TaskConfig for testing purposes. When their token expires, the task runs for an hour and then fails with the above error. Is there a way to make the user experience smoother for this use case? I guess lowering the
MaxNodeRetriesOnSystemFailures
to a reasonable number (e.g. 3) would reduce the response time. (but it's a global setting for all kinds of downstream system failures) Can we control what kind of downstream errors are considered as service failure? (I'm thinking of excluding some HTTP response codes from system failures - e.g. 403) Thank you, Robert ### Expected behavior Users get quick feedback on the issue - Downstream service (Databricks) returned HTTP 403 when the job was submitted. ### Additional context to reproduce
No response
### Screenshots
[image](https://private-user-images.githubusercontent.com/10614761/304101551-9e8ab60a-67f4-415b-8b54-61108aca5a51.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDg3MzcwMzIsIm5iZiI6MTc0ODczNjczMiwicGF0aCI6Ii8xMDYxNDc2MS8zMDQxMDE1NTEtOWU4YWI2MGEtNjdmNC00MTViLThiNTQtNjExMDhhY2E1YTUxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA2MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNjAxVDAwMTIxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJlMTlhM2E5YjkzY2UxNzFmZWVmNzNlMmI5NWY5Y2M5Nzg1YjI0MmQ4YmQ2MDdlNzI5MTg1MGM0NzdlZGVjZGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OOPLcrQyR5TxiihuyzcXio8_qJ2FdoB3c6Xo-1ZMAc4)
### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes
flyteorg/flyte
cuddly-jelly-27016
06/01/2025, 12:12 AM
#4880 [BUG] HTTP 403 response is categorized as Downstream Service Failure and being retried for an hour
Issue closed as not planned by
github-actions[bot]
flyteorg/flyte
2
Views
Open in Slack
Previous
Next