-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parse transaction timeout as duration #16338
Conversation
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Thank you, @shanth96 ! This was a mistake in the past and it was the odd person out in the flag handling:
You will need to update that |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16338 +/- ##
==========================================
- Coverage 68.71% 68.69% -0.03%
==========================================
Files 1547 1547
Lines 198286 198287 +1
==========================================
- Hits 136257 136211 -46
- Misses 62029 62076 +47 ☔ View full report in Codecov by Sentry. |
448563a
to
7b9a633
Compare
30s makes more sense. Updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @shanth96 !
I think if you want this to be backported, the default should not change? Might be easier to have one PR that fixes the parsing behaviour (that can be backported), and a second PR that changes the default (which can then be mentioned in the release notes). |
You could argue that this is used only for testing, and it is OK to change even in an older release. But what you have stated here is of course the official way to change any flags. @shanth96 can you tell us how you are using vttestserver and why you need this fixed in v19? Non production bugs are typically not fixed in older releases. |
Turns out we were setting defaults to 300s through a hardcoded value outside the cobra flags definition. Hence, i've updated this PR to use 300s as a default.
Given that I just found out that the default is being set to 300s, I'm okay with it not being backported to v19. Previously, I was under the assumption that we were setting it 0 (no timeout) as default so it was pretty important to be able to backport it to be able to set reasonable timeouts on our CI agents. |
I don't like to see any query timeout / transaction timeout default to > 30 seconds. So if you could set the default to 30 seconds, that will be great. Now that the parsing has been fixed, people can override it to 300s if they want to. I assume this still means that we don't (at least right now) backport anything to v19 and v20, where everyone is getting 300s and no one can change it. |
ae36eb1
to
fef8c84
Compare
Signed-off-by: shanth96 <shanth.sathiyaseelan@shopify.com>
fef8c84
to
dafde37
Compare
Set it back to 30s and yes, for v19 and v20, everyone will get 300s and no one can change it. |
@deepthi can I get some 👀 on this? |
@mattlord tests are passing/CI is green. Good to merge I think |
Thank you so much! |
@nonbb and @shanth96 Looks like we missed the window for the backport bot and they'll need to be done manually. Do you want to open the backport PRs which a cherry-pick of the |
Would you mind also helping with that? @mattlord if you don't have time I can try as well! |
Signed-off-by: shanth96 <shanth.sathiyaseelan@shopify.com>
Signed-off-by: shanth96 <shanth.sathiyaseelan@shopify.com>
Description
This PR fixes a bug that causes vttestserver to parse the
--queryserver-config-transaction-timeout
incorrectly. This should be backported all the way to v19.Related Issue(s)
Fixes #16337
Checklist