Skip to content
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

Merged
merged 1 commit into from
Mar 31, 2023

Conversation

michae2
Copy link
Collaborator

@michae2 michae2 commented Mar 30, 2023

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

@michae2 michae2 requested a review from a team as a code owner March 30, 2023 19:57
@blathers-crl
Copy link

blathers-crl bot commented Mar 30, 2023

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.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@rharding6373 rharding6373 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: Thanks!

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @cucaroach)

Copy link
Collaborator

@rharding6373 rharding6373 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: 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.

Copy link
Contributor

@cucaroach cucaroach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: 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
Copy link
Collaborator Author

@michae2 michae2 left a 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: :shipit: 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.

@craig
Copy link
Contributor

craig bot commented Mar 30, 2023

This PR was included in a batch that was canceled, it will be automatically retried

@craig
Copy link
Contributor

craig bot commented Mar 30, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Mar 31, 2023

Build succeeded:

@craig craig bot merged commit f2ed466 into cockroachdb:master Mar 31, 2023
@michae2 michae2 deleted the 100051 branch March 31, 2023 00:18
@knz
Copy link
Contributor

knz commented Apr 2, 2023

might be worth backporting? in case this happens to 23.1 deployments

@michae2
Copy link
Collaborator Author

michae2 commented Apr 3, 2023

might be worth backporting? in case this happens to 23.1 deployments

blathers backport 23.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants