Skip to content

Wait for asyn_loading to stop in short read test#9841

Merged
oranagra merged 1 commit intoredis:unstablefrom
enjoy-binbin:async_loading
Nov 24, 2021
Merged

Wait for asyn_loading to stop in short read test#9841
oranagra merged 1 commit intoredis:unstablefrom
enjoy-binbin:async_loading

Conversation

@enjoy-binbin
Copy link
Contributor

In #9323, when repl-diskless-load is enabled and set to swapdb,
if the master replication ID hasn't changed, we can load data-set
asynchronously, and serving read commands during the full resync.

In diskless loading short read test, after a loading successfully,
we will wait for the loading to stop and continue the for loop.

After the introduction of async_loading, we also need to check it.
Otherwise the next loop will start too soon, may trigger a timing issue.

In redis#9323, when `repl-diskless-load` is enabled and set to `swapdb`,
if the master replication ID hasn't changed, we can load data-set
asynchronously, and serving read commands during the full resync.

In `diskless loading short read` test, after a loading successfully,
we will wait for the loading to stop and continue the for loop.

After the introduction of `async_loading`, we also need to check it.
Otherwise the next loop will start too soon, may trigger a timing issue.
@oranagra oranagra merged commit fb4f7be into redis:unstable Nov 24, 2021
@enjoy-binbin enjoy-binbin deleted the async_loading branch November 24, 2021 10:49
hwware pushed a commit to hwware/redis that referenced this pull request Dec 20, 2021
In redis#9323, when `repl-diskless-load` is enabled and set to `swapdb`,
if the master replication ID hasn't changed, we can load data-set
asynchronously, and serving read commands during the full resync.

In `diskless loading short read` test, after a loading successfully,
we will wait for the loading to stop and continue the for loop.

After the introduction of `async_loading`, we also need to check it.
Otherwise the next loop will start too soon, may trigger a timing issue.
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.

2 participants