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

jobs: hang the job registry off the server context #72605

Merged
merged 1 commit into from
Nov 10, 2021

Conversation

knz
Copy link
Contributor

@knz knz commented Nov 10, 2021

Informs #58938.

Prior to this patch, log messages related to jobs were disconnected
from the server context and were thus missing the node ID and other
log tags.

This patch fixes it.

Release note: None

Prior to this patch, log messages related to jobs were disconnected
from the server context and were thus missing the node ID and other
log tags.

This patch fixes it.

Release note: None
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@miretskiy miretskiy left a comment

Choose a reason for hiding this comment

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

Nice.

@knz
Copy link
Contributor Author

knz commented Nov 10, 2021

TFYR!

bors r=miretskiy

@craig
Copy link
Contributor

craig bot commented Nov 10, 2021

Build succeeded:

@craig craig bot merged commit a539b38 into cockroachdb:master Nov 10, 2021
@knz knz deleted the 20211110-ctx branch November 11, 2021 11:17
craig bot pushed a commit that referenced this pull request Nov 18, 2021
72471: kvserver: fix bugs in & fortify tenant refcounting r=ajwerner a=tbg

This PR fixes a sandwich of two bugs around refcounting the tenant rate limiters and metrics that I found while prototyping around #72374.

We had an accidental early return in `postDestroyRaftMuLocked` that meant that tenant metrics and rate limiters were essentially never released.

We were also continuing to use at least the tenant metrics object after the call to `postDestroyRaftMuLocked` had returned (but note that the above bug meant that we hadn't actually released the ref).

This PR fixes both and adds precautions against regressions of such bugs.

Despite having fixed bugs, I would be cautious about backporting this to 21.2 and 21.1; the bugs here never seem to have caused any problems, and since our day-to-day testing isn't heavy on tenants, it's unclear how reliably we'd be shaking out problems that were previously masked by the bug.

72836: server,sql,kv: various context improvements r=miretskiy,tbg a=knz

Informs #58938.

Connects more async goroutines to the tracer.

Also fixes various defects I introduced in #72638 and #72605.


Co-authored-by: Tobias Grieger <tobias.b.grieger@gmail.com>
Co-authored-by: Tobias Grieger <tobias.schottdorf@gmail.com>
Co-authored-by: Raphael 'kena' Poss <knz@thaumogen.net>
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.

3 participants