Skip to content

Fix wal replay issue during rollup#8774

Merged
13 commits merged intomainfrom
harshil/rollup_ts_fix
Apr 10, 2023
Merged

Fix wal replay issue during rollup#8774
13 commits merged intomainfrom
harshil/rollup_ts_fix

Conversation

@ghost
Copy link
Copy Markdown

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

@ghost ghost 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
Comment thread posting/index.go Outdated
Comment thread posting/index.go Outdated
Comment thread posting/list.go Outdated
Comment thread posting/list.go Outdated
Comment thread posting/list.go Outdated
Comment thread posting/mvcc.go Outdated
@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
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
@ghost ghost force-pushed the harshil/rollup_ts_fix branch from b13ee36 to 8c376ea Compare April 10, 2023 11:04
@ghost ghost merged commit f64e8a6 into main Apr 10, 2023
@ghost ghost deleted the harshil/rollup_ts_fix branch April 10, 2023 14:40
@skrdgraph skrdgraph mentioned this pull request Apr 11, 2023
This pull request was closed.
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.

3 participants