Repository navigation
fix(DM01-6451): prevent API timeouts and bound job initialization retries - #657
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Vault AppRole authentication failures or slow Vault responses can leave job initialization holding database connections, exhaust the API pool, and block requests such as /api/ping. Fetch the project's Vault configurations and release the database connection before resolving secrets. Fail immediately on AppRole HTTP 400/401/403 and use 10-second timeouts for authentication-related HTTP calls.
Limit runner connection errors and timeouts to the same 10-retry budget as HTTP failures, with exponential delays capped at 300 seconds. HTTP 400 remains terminal and preserves the API error message. Preserve the request-ID, traceback, and API-stage diagnostics on master.
Jira: https://jira.tools.sap/browse/DM01-6451
Validation: 27 local regression tests passed: 11 API tests, 8 runner retry tests, and 8 request-diagnostics tests from master. The tests cover database-pool availability during blocked Vault calls, AppRole error handling, bounded and transient runner failures, HTTP 400/409 handling, and flushed diagnostics before retry. Whitespace checks passed. Production verification is pending.