-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
exec: fix possible infinite loops in the benchmark #37106
Conversation
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.
@solongordon I think you were looking at this too?
@yuzefovich it might be easier to always include an element of mintint64 as the 0th element or something?
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis)
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.
My in-progress PR for null handling makes these benchmarks deterministic. No harm in merging this in the meantime.
It might also be nice to add a bit of logic to repeatableBatchSource
which panics if Next
is called some unrealistically high number of times, since I'm sure we'll hit this problem again.
Reviewable status: complete! 1 of 0 LGTMs obtained
ff7b196
to
0608e60
Compare
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.
I liked Jordan's suggestion on how to simplify the logic a bit by putting a few specific values.
Not sure about the repeatableBatchSource
- what that unrealistic number would be? I think that Golang itself panics after reaching the certain depth of the stack, right? And our logic would be very similar - we'd check for number of batches returned and panic with a custom message instead of Golang's.
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale)
Release note: None
0608e60
to
56906de
Compare
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.
I don't think there's recursion going on so we wouldn't hit a stack depth error. But yeah, don't know off the top of my head what a good number would be. Don't worry about it for this PR, just an idea.
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale)
TFTRs! bors r+ |
Build succeeded |
Release note: None