Skip to content

admission: move kv admission under tracing span setup#77538

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
cucaroach:tracing-fix
Mar 11, 2022
Merged

admission: move kv admission under tracing span setup#77538
craig[bot] merged 1 commit intocockroachdb:masterfrom
cucaroach:tracing-fix

Conversation

@cucaroach
Copy link
Copy Markdown
Contributor

Release justification: Important for full tracing visibility

Release note: none

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@cucaroach cucaroach marked this pull request as ready for review March 10, 2022 13:47
@cucaroach cucaroach requested a review from a team as a code owner March 10, 2022 13:47
@cucaroach cucaroach requested a review from sumeerbhola March 10, 2022 13:47
Copy link
Copy Markdown
Collaborator

@sumeerbhola sumeerbhola left a comment

Choose a reason for hiding this comment

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

looks ok to me, but can you get someone from KV to approve -- there may be some subtleties that I am unaware of.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@knz knz requested review from a team and andreimatei March 10, 2022 17:45
Copy link
Copy Markdown
Contributor

@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.

:lgtm:

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


pkg/server/node.go, line 979 at r1 (raw file):

		var pErr *roachpb.Error
		br, pErr = n.stores.Send(ctx, *args)
		n.admissionController.AdmittedKVWorkDone(handle)

can we defer this?

Copy link
Copy Markdown
Contributor Author

@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 @andreimatei and @sumeerbhola)


pkg/server/node.go, line 979 at r1 (raw file):

Previously, andreimatei (Andrei Matei) wrote…

can we defer this?

@sumeerbhola ? I can't think of compelling argument either way given how simple the function is. I guess it boils down to do we want callComplete blocking the call to AdmittedKVWorkDone.

Copy link
Copy Markdown
Collaborator

@sumeerbhola sumeerbhola 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 @andreimatei and @sumeerbhola)


pkg/server/node.go, line 979 at r1 (raw file):

Previously, cucaroach (Tommy Reilly) wrote…

@sumeerbhola ? I can't think of compelling argument either way given how simple the function is. I guess it boils down to do we want callComplete blocking the call to AdmittedKVWorkDone.

defer-ing is fine, since callComplete is cpu work.

Release justification: Important for full tracing visibility

Release note: none
@cucaroach
Copy link
Copy Markdown
Contributor Author

TFTRs
bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 10, 2022

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

@craig craig bot merged commit 0fb2c0c into cockroachdb:master Mar 11, 2022
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 11, 2022

Build succeeded:

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.

4 participants