Skip to content

sql: add cluster setting to limit max size of serialized session#77307

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
rafiss:session-migration-followups
Mar 3, 2022
Merged

sql: add cluster setting to limit max size of serialized session#77307
craig[bot] merged 1 commit intocockroachdb:masterfrom
rafiss:session-migration-followups

Conversation

@rafiss
Copy link
Copy Markdown
Collaborator

@rafiss rafiss commented Mar 2, 2022

fixes #77302

The sql.session_transfer.max_session_size cluster setting can be used to
limit the max size of a session that is serialized using
crdb_internal.serialize_session.

No release note since this is not a public setting.

Release justification: high priority fix for new functionality.

Release note: None

@rafiss rafiss requested review from a team and jaylim-crl March 2, 2022 21:27
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@jaylim-crl jaylim-crl 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!

(there's a lint issue by the way)

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

The sql.session_transfer.max_session_size cluster setting can be used to
limit the max size of a session that is serialized using
crdb_internal.serialize_session.

No release note since this is not a public setting.

Release justification: high priority fix for new functionality.

Release note: None
@rafiss rafiss force-pushed the session-migration-followups branch from 6f771b1 to baf3d76 Compare March 3, 2022 17:54
@rafiss
Copy link
Copy Markdown
Collaborator Author

rafiss commented Mar 3, 2022

tftr!

bors r=otan,jaylim-crl

@craig craig bot merged commit 960f2b4 into cockroachdb:master Mar 3, 2022
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 3, 2022

Build succeeded:

@rafiss rafiss deleted the session-migration-followups branch March 4, 2022 05:04
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.

sql: add TenantReadOnly cluster setting to restrict returned MigratableSession size

4 participants