v14: fix: Do not clear the schema cache during retries - #5002
v14: fix: Do not clear the schema cache during retries#5002taimoorzaeem wants to merge 1 commit into
Conversation
retryingSchemaCacheLoad should not clear existing schema cache upon failure - there is no reason to do that. If there is a communication issue with the database server or db is down, clients are going to get 502 anyway. If it was a glitch when loading the schema cache - the clients are going to use old (stale) schema cache for some time until next retry re-loads it successfully.
|
I'm not sure why this was labeled fix, but I don't think we should backport this. This just seems like a change from one intended behavior to another. Might not be a breaking change, but still. |
We should amend the changelog on #4869, I remember thinking it needed docs but was conflicted by the |
There's multiple angles to look at this:
No matter whether you call it a fix or not - this is just not material to backport. |
tbh, I'm not sure whether I follow the reasoning of "it's a fix, so no docs needed" ;) |
We never done that for regular fixes since they mean a "correction to match already documented behavior", only for critical fixes (like https://github.com/PostgREST/postgrest/releases/tag/v12.2.12) we've added docs; because they're partly an addition (new behavior). So far that has made sense. We'll likely do the same for #5012. Edit: added this clarification on 412c6a1 |
Updated the docs on 6951e13. I only updated a note that was now wrong. It didn't warrant changing the fix to a feature because there wasn't much behavior change.
Yeah I think that this is part of treating the "schema cache as a performance optimization", which makes a lot of sense considering some wrong decisions in the past (like passing it to SQL land #1794). This also further validates |
Backport #4869.