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: do IO before in-memory Replica creation #95311

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

pav-kv
Copy link
Collaborator

@pav-kv pav-kv commented Jan 16, 2023

This commit moves the storage IO before newUnloadedReplica invocation. This allows returning early if storage invariants do not hold, and also simplifies error handling and mutex locking when instantiating a Replica.

Touches #93898
Epic: CRDB-220
Release note: none

This commit moves the storage IO before newUnloadedReplica invocation. This
allows returning early if storage invariants do not hold, and also simplifies
error handling and mutex locking when instantiating a Replica.

Release note: none
@pav-kv pav-kv requested a review from tbg January 16, 2023 16:25
@pav-kv pav-kv requested a review from a team as a code owner January 16, 2023 16:25
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@pav-kv
Copy link
Collaborator Author

pav-kv commented Jan 16, 2023

I recommend reviewing with "Hide whitespace changes".

Copy link
Member

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

Nice!

@pav-kv
Copy link
Collaborator Author

pav-kv commented Jan 17, 2023

bors r=tbg

@craig
Copy link
Contributor

craig bot commented Jan 17, 2023

Build failed:

@pav-kv
Copy link
Collaborator Author

pav-kv commented Jan 17, 2023

bors retry

@pav-kv
Copy link
Collaborator Author

pav-kv commented Jan 17, 2023

The failure in bors was a flake: #95350

@craig
Copy link
Contributor

craig bot commented Jan 17, 2023

Build failed:

@pav-kv
Copy link
Collaborator Author

pav-kv commented Jan 17, 2023

Caught another pre-existing failure: #95286

@pav-kv
Copy link
Collaborator Author

pav-kv commented Jan 17, 2023

bors retry

@craig
Copy link
Contributor

craig bot commented Jan 17, 2023

Build succeeded:

@craig craig bot merged commit 6116ab4 into cockroachdb:master Jan 17, 2023
@pav-kv pav-kv deleted the create_replica branch January 17, 2023 15:27
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