Skip to content

(release/v1.6) Update head while replaying value log (#1372)#1506

Merged
NamanJain8 merged 2 commits intorelease/v1.6from
naman/cp-9
Sep 9, 2020
Merged

(release/v1.6) Update head while replaying value log (#1372)#1506
NamanJain8 merged 2 commits intorelease/v1.6from
naman/cp-9

Conversation

@NamanJain8
Copy link
Copy Markdown
Contributor

@NamanJain8 NamanJain8 commented Sep 8, 2020

Fixes #1363

The head pointer is not updated when we perform replays. The head
pointer would be updated only when the replay completes. If badger crashes
between the point when replay started and replay finished, we would end up
replaying all the value log files. This PR fixes this issue.

(cherry picked from commit 509de73)


This change is Reviewable

Fixes #1363

The head pointer is not updated when we perform replays. The head
pointer would be updated only when the replay completes. If badger crashes
between the point when replay started and replay finished, we would end up
replaying all the value log files. This PR fixes this issue.

(cherry picked from commit 509de73)
Copy link
Copy Markdown
Contributor

@jarifibrahim jarifibrahim left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @ashish-goswami, @jarifibrahim, and @manishrjain)

@NamanJain8 NamanJain8 merged commit 13fbfeb into release/v1.6 Sep 9, 2020
@NamanJain8 NamanJain8 deleted the naman/cp-9 branch September 9, 2020 12:41
mYmNeo pushed a commit to mYmNeo/badger that referenced this pull request Jan 16, 2023
Fixes dgraph-io#1363

The head pointer is not updated when we perform replays. The head
pointer would be updated only when the replay completes. If badger crashes
between the point when replay started and replay finished, we would end up
replaying all the value log files. This PR fixes this issue.

(cherry picked from commit 509de73)

Co-authored-by: Ibrahim Jarif <ibrahim@dgraph.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants