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

kvserver: extract writeUnreplicatedSST #96882

Merged
merged 4 commits into from
Feb 13, 2023

Conversation

tbg
Copy link
Member

@tbg tbg commented Feb 9, 2023

This PR extracts a standalone method writeUnreplicatedSST that can be moved
to kvstorage at an appropriate time.

This is a sister PR to #96871, which does the same to some other SSTs created
in applySnapshot.

Epic: CRDB-220
Release note: None

tbg added 2 commits February 9, 2023 17:18
This will be fully extracted mechanically in next commit. Review with
whitespace suppressed for best results.

The only real change is that we're dropping the raft entry cache a tad
later now. But, the order here is completely irrelevant; the raft entry
cache doesn't care if we've created (not ingested) some SSTs yet.

Epic: CRDB-220
Release note: None
CTRL-X CTRL-V

Epic: CRDB-220
Release note: None
@blathers-crl
Copy link

blathers-crl bot commented Feb 9, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@tbg tbg requested a review from pav-kv February 9, 2023 16:19
@tbg tbg marked this pull request as ready for review February 9, 2023 16:19
@tbg tbg requested a review from a team February 9, 2023 16:19
@tbg tbg requested a review from a team as a code owner February 9, 2023 16:19
pkg/kv/kvserver/replica_raftstorage.go Show resolved Hide resolved
pkg/kv/kvserver/replica_raftstorage.go Outdated Show resolved Hide resolved
Copy link
Member Author

@tbg tbg left a comment

Choose a reason for hiding this comment

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

TFTR!

bors r=pavelkalinnikov

pkg/kv/kvserver/replica_raftstorage.go Show resolved Hide resolved
pkg/kv/kvserver/replica_raftstorage.go Outdated Show resolved Hide resolved
@craig
Copy link
Contributor

craig bot commented Feb 13, 2023

Build succeeded:

@craig craig bot merged commit 18c5a38 into cockroachdb:master Feb 13, 2023
@tbg tbg deleted the unreplicated-sst-extract branch February 14, 2023 11:32
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