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

fix: Anti-Entropy loops endlessly with empty shard (#21275) #21290

Merged
merged 3 commits into from
Apr 26, 2021

Conversation

davidby-influx
Copy link
Contributor

The anti-entropy service will loop trying to copy an empty shard to a
data node missing that shard. This fix is one of two changes that
correctly create an empty shard on a new node. This fix will set the
LastModified date of an empty shard directory to the modification time
of that directory, instead of to the Unix epoch.

Fixes: #21273
(cherry picked from commit 7f300dc)

Closes ##21288

Describe your proposed changes here.

The anti-entropy service will loop trying to copy an empty shard to a
data node missing that shard.  This fix is one of two changes that
correctly create an empty shard on a new node. This fix will set the
LastModified date of an empty shard directory to the modification time
of that directory, instead of to the Unix epoch.

Fixes: #21273
(cherry picked from commit 7f300dc)
Copy link
Contributor

@lesam lesam left a comment

Choose a reason for hiding this comment

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

Good backport - but what about changelog?

@davidby-influx
Copy link
Contributor Author

@lesam - Oops.

lesam
lesam previously approved these changes Apr 23, 2021
@davidby-influx davidby-influx merged commit e234aa7 into 1.8 Apr 26, 2021
@davidby-influx davidby-influx deleted the DSB_repairrepeat_21288 branch April 26, 2021 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Anti-Entropy loops endlessly with empty shard [Port to 1.8 branch]
2 participants