Skip to content

sql: clarify the handling of the first message in a remote DistSQL st…#41454

Open
andreimatei wants to merge 1 commit intocockroachdb:masterfrom
andreimatei:distsql.first-msg
Open

sql: clarify the handling of the first message in a remote DistSQL st…#41454
andreimatei wants to merge 1 commit intocockroachdb:masterfrom
andreimatei:distsql.first-msg

Conversation

@andreimatei
Copy link
Copy Markdown
Contributor

@andreimatei andreimatei commented Oct 8, 2019

…ream

The first message in a stream is special; it includes a header
specifying whose the destination is, so it needs to be decoded before
handing it to the usual stream handling machinery. The row-based handler was
guarding unnecessarily for the case where it's not handed such a first
message. This commits removes this guard and clarifies that you always
have such a message.

Touches #41456

Release note: None

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Member

@RaduBerinde RaduBerinde 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! 0 of 0 LGTMs obtained (waiting on @andreimatei and @RaduBerinde)


pkg/sql/flowinfra/inbound.go, line 74 at r1 (raw file):

	ctx context.Context,
	stream execinfrapb.DistSQL_FlowStreamServer,
	firstMsg execinfrapb.ProducerMessage,

Isn't this pretty big to be put on the stack?

…ream

The first message in a stream is special; it includes a header
specifying whose the destination is, so it needs to be decoded before
handing it to the usual stream handling machinery. The row-based handler was
guarding unnecessarily for the case where it's not handed such a first
message. This commits removes this guard and clarifies that you always
have such a message.

Touches cockroachdb#41456

Release note: None
Copy link
Copy Markdown
Contributor Author

@andreimatei andreimatei 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! 0 of 0 LGTMs obtained


pkg/sql/flowinfra/inbound.go, line 74 at r1 (raw file):

Previously, RaduBerinde wrote…

Isn't this pretty big to be put on the stack?

ok, passed by ptr again

@bobvawter
Copy link
Copy Markdown
Contributor

bobvawter commented Mar 10, 2020

CLA assistant check
All committers have signed the CLA.

@andreimatei andreimatei requested a review from asubiotto April 24, 2020 18:58
@tbg tbg added the X-noremind Bots won't notify about PRs with X-noremind label May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

X-noremind Bots won't notify about PRs with X-noremind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants