Skip to content

server: remove ad-hoc next-instance-id cache (tenant only)#73523

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
RaduBerinde:tenant-instances-no-poll
Dec 7, 2021
Merged

server: remove ad-hoc next-instance-id cache (tenant only)#73523
craig[bot] merged 1 commit intocockroachdb:masterfrom
RaduBerinde:tenant-instances-no-poll

Conversation

@RaduBerinde
Copy link
Copy Markdown
Member

The tenant's cost control code requires a function that retrieves the
next live SQL instance ID. The implementation of this function
currently caches the value and only refreshes it periodically.

This is now unnecessary: #69976 changed the instance reader to use a
rangefeed and serve values from memory.

Release note: None

The tenant's cost control code requires a function that retrieves the
next live SQL instance ID. The implementation of this function
currently caches the value and only refreshes it periodically.

This is now unnecessary: cockroachdb#69976 changed the instance reader to use a
rangefeed and serve values from memory.

Release note: None
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @rimadeodhar)

Copy link
Copy Markdown
Collaborator

@rimadeodhar rimadeodhar left a comment

Choose a reason for hiding this comment

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

Reviewed all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @RaduBerinde)

Copy link
Copy Markdown
Member Author

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

TFTRs!

bors r+

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

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Dec 7, 2021

Build succeeded:

@craig craig bot merged commit 67662d8 into cockroachdb:master Dec 7, 2021
@RaduBerinde RaduBerinde deleted the tenant-instances-no-poll branch December 14, 2021 18:25
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