Skip to content

fix loading race in psync2 tests#7155

Merged
antirez merged 1 commit intoredis:unstablefrom
oranagra:psync2_tests_race
Apr 28, 2020
Merged

fix loading race in psync2 tests#7155
antirez merged 1 commit intoredis:unstablefrom
oranagra:psync2_tests_race

Conversation

@oranagra
Copy link
Member

@antirez another race in the various psync2 tests. they can try to do DBSIZE or GET too early and get -LOADING error.

@antirez antirez merged commit e8bc306 into redis:unstable Apr 28, 2020
@antirez
Copy link
Contributor

antirez commented Apr 28, 2020

Thank you @oranagra, we should have functions that automatically do checks and automatically call wait_for_condition letting us to verify things, and making sure to do certain checks.

@oranagra
Copy link
Member Author

@antirez i now realize that this should actually never happen in these tests.
an RDB file with one small key is not expected pro call processEventsWhileBlocked (happens once in 2mb).
happened to me due to some other bug and i figured it was a race due to slowness.

JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request May 15, 2020
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