Repository navigation
fix(sequelize/query): retry entire query - #8991
Conversation
| @@ -1,37 +0,0 @@ | |||
| 'use strict'; | |||
There was a problem hiding this comment.
As noted in original PR this test was added to ensure connection is only released once and there is no Resource not currently part of this pool error.
Now each retry fetch new connection so this test is not required. Also that error was already handled here
| } | ||
|
|
||
| if (this.test._trackRunningQueries) { | ||
| if (isFirstTry && this.test._trackRunningQueries) { |
There was a problem hiding this comment.
Not related to this PR but a possible fix for randomly failing tests due to tracking queries //cc @janmeier
|
found one broken case here - retry-as-promised seems to start the timeout counter before any retries have happened, so if you try to run a really long query (lets say 120s) and you set the retry timeout for 60s it will fail with a timeout, even though 0 retries happened. seems like something that needs to be fixed in retry-as-promised. |
Current default timeout is |
|
@sushantdhiman Yep, understood where the fault lies - I think this can be merged without the fix, just wanted to mention it. I've opened the ticket there and will probably send a PR if I have time to mickhansen/retry-as-promised#14. |
| } | ||
|
|
||
| if (this.test._trackRunningQueries) { | ||
| if (isFirstTry && this.test._trackRunningQueries) { |
|
Great that is resolved :) Thanks :) |
|
We need this fix ASAP :-) We are affected by this and looking forward to this fix! |
(reverted from commit 0cf1911)
Pull Request check-list
Please make sure to review and check all of these items:
npm run testornpm run test-DIALECTpass with this change (including linting)?Description of change
Continued from #8961
Closes #2113
Closes #8022
Closes #8014