[Bug]: Inconsistent Behavior during Hot Reload for changes in Runtime Section of the config. #2392
Closed
1 task done
Labels
bug
Something isn't working
🔥Hot Reload
Tasks related to DAB's Hot Reload feature proposal
triage
issues to be triaged
What happened?
Summary:
When using the Hot Reload feature to update the Runtime section of the configuration, the system does not properly refresh all objects. This leads to inconsistent behavior, specifically resulting in "resource not found" errors after re-enabling REST/GraphQL endpoints.
Steps to Reproduce:
Observed Behavior:
After re-enabling REST/GraphQL, the endpoints are accessible, but querying them results in "resource not found" errors.
Expected Behavior:
After re-enabling REST/GraphQL, the endpoints should be fully functional and return the expected resources without errors.
Thoughts:
The issue appears to be related to the incomplete refresh of internal objects during the Hot Reload process. When the configuration is updated to re-enable REST/GraphQL, some objects or states are not properly re-initialized, leading to the "resource not found" errors.
Possible Root Causes:
Incomplete State Reset: Certain internal states or objects are not fully reset or re-initialized during the Hot Reload process.
Dependency Injection: Services or dependencies related to REST/GraphQL might not be properly re-injected or re-configured.
Attachments:
REST response (after re-enabling)
GraphQL response (after re-enabling)
Version
main
What database are you using?
Azure SQL
What hosting model are you using?
Local (including CLI)
Which API approach are you accessing DAB through?
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: