Skip to content

server: skip unit'ed engines in tombstone storage#55734

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
tbg:decom-tombstone-init
Oct 20, 2020
Merged

server: skip unit'ed engines in tombstone storage#55734
craig[bot] merged 1 commit intocockroachdb:masterfrom
tbg:decom-tombstone-init

Conversation

@tbg
Copy link
Copy Markdown
Member

@tbg tbg commented Oct 20, 2020

Empty (i.e. uninitialized engines) could receive tombstones before
being initialized. Initialization checks that the engine is empty
(save for the cluster version) and thus failed. Simply don't write
tombstones to uninitialized engines, which is fine since by the
time the callbacks fire, at least one is initialized anyway, and
besides, this mechanism is best effort.

The alternatives would have been to either allow tombstones to
be present on an engine that is being bootstrapped, or to give
the storage the option to defer writing to the engine once it's
bootstrapped. Neither seemed worth the extra work.

Fixes #55576.

Release note: None

Empty (i.e. uninitialized engines) could receive tombstones before
being initialized. Initialization checks that the engine is empty
(save for the cluster version) and thus failed. Simply don't write
tombstones to uninitialized engines, which is fine since by the
time the callbacks fire, at least one is initialized anyway, and
besides, this mechanism is best effort.

The alternatives would have been to either allow tombstones to
be present on an engine that is being bootstrapped, or to give
the storage the option to defer writing to the engine once it's
bootstrapped. Neither seemed worth the extra work.

Fixes cockroachdb#55576.

Release note: None
@tbg tbg requested a review from a team as a code owner October 20, 2020 09:45
@tbg tbg requested a review from irfansharif October 20, 2020 09:45
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@tbg
Copy link
Copy Markdown
Member Author

tbg commented Oct 20, 2020

bors r=irfansharif

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Oct 20, 2020

Build succeeded:

@craig craig bot merged commit d58b0dc into cockroachdb:master Oct 20, 2020
@tbg tbg deleted the decom-tombstone-init branch October 21, 2020 08:01
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.

roachtest: decommission/nodes=4/duration=1h0m0s failed

3 participants