-
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
physicalplan: debugging for segfault in fakeSpanResolverIterator.Seek #100204
Conversation
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @cucaroach)
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @cucaroach and @michae2)
pkg/sql/physicalplan/fake_span_resolver.go
line 171 at r1 (raw file):
fit.ranges = make([]fakeRange, len(splits)-1) for i := range fit.ranges { nodes := fit.fsr.nodes
minor nit: maybe there should be a comment here so that a reasonable person doesn't clean this up in the near future.
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @michae2 and @rharding6373)
pkg/sql/physicalplan/fake_span_resolver.go
line 172 at r1 (raw file):
for i := range fit.ranges { nodes := fit.fsr.nodes n := len(nodes)
It looks weird (to me) that n and nodes aren't hoisted outside the loop.
Break up a line that is segfaulting into several lines, so that we can tell which part is to blame if it happens again. Informs: cockroachdb#100051 Informs: cockroachdb#100108 Epic: None Release note: None
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.
TFTRs!
bors r=rharding6373,cucaroach
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @cucaroach and @rharding6373)
pkg/sql/physicalplan/fake_span_resolver.go
line 171 at r1 (raw file):
Previously, rharding6373 (Rachael Harding) wrote…
minor nit: maybe there should be a comment here so that a reasonable person doesn't clean this up in the near future.
Done.
pkg/sql/physicalplan/fake_span_resolver.go
line 172 at r1 (raw file):
Previously, cucaroach (Tommy Reilly) wrote…
It looks weird (to me) that n and nodes aren't hoisted outside the loop.
Done.
This PR was included in a batch that was canceled, it will be automatically retried |
Build failed (retrying...): |
Build succeeded: |
might be worth backporting? in case this happens to 23.1 deployments |
blathers backport 23.1 |
Break up a line that is segfaulting into several lines, so that we can tell which part is to blame if it happens again.
Informs: #100051
Informs: #100108
Epic: None
Release note: None