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 wal replay issue during rollup #8774

Merged
merged 13 commits into from
Apr 10, 2023
Merged

Fix wal replay issue during rollup #8774

merged 13 commits into from
Apr 10, 2023

Conversation

harshil-goel
Copy link
Contributor

@harshil-goel harshil-goel commented Mar 29, 2023

We have confirmation that rollups can cause issues during wal replay. This diff fixes the issue by issuing incremental rollup a new timestamp where the rollup would be written. We wait until the timestamp - 1 time to read the data, and then do the rollup at timestamp.

Performance implications:
Live loader before:
Number of TXs run : 21240
Number of N-Quads processed : 21239870
Time spent : 10m26.664095134s
N-Quads processed per second : 33929

Live Loader after the changes:
Number of TXs run : 21240
Number of N-Quads processed : 21239870
Time spent : 10m23.564645632s
N-Quads processed per second : 34312

Negligible different in time taken to upload 21 million dataset.

@dgraph-bot dgraph-bot added area/bulk-loader Issues related to bulk loading. area/core internal mechanisms area/testing Testing related issues go Pull requests that update Go code labels Mar 29, 2023
mangalaman93
mangalaman93 previously approved these changes Mar 30, 2023
posting/index.go Outdated Show resolved Hide resolved
posting/index.go Outdated Show resolved Hide resolved
posting/list.go Outdated Show resolved Hide resolved
posting/list.go Outdated Show resolved Hide resolved
posting/list.go Outdated Show resolved Hide resolved
posting/mvcc.go Outdated Show resolved Hide resolved
@mangalaman93 mangalaman93 dismissed stale reviews from all-seeing-code and themself via 253c709 March 30, 2023 14:23
@mangalaman93 mangalaman93 force-pushed the harshil/rollup_ts_fix branch 2 times, most recently from 253c709 to 76b6225 Compare March 30, 2023 19:46
Harshil Goel added 6 commits April 10, 2023 16:34
Rollups can cause issues during wal replay. This diff fixes
the issue by issuing incremental rollup at a new timestamp
where the rollup would be written. We wait until the ts-1
time to read the data, and then do the rollup at timestamp.

FIXES https://dgraph.atlassian.net/browse/DGRAPHCORE-92
@harshil-goel harshil-goel force-pushed the harshil/rollup_ts_fix branch from b13ee36 to 8c376ea Compare April 10, 2023 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bulk-loader Issues related to bulk loading. area/core internal mechanisms area/testing Testing related issues go Pull requests that update Go code
Development

Successfully merging this pull request may close these issues.

4 participants