Skip to content

Fix timing issue in sentinel reconnect test#10424

Merged
yossigo merged 1 commit intoredis:unstablefrom
enjoy-binbin:fix_sentinel_reconnect_test
Mar 14, 2022
Merged

Fix timing issue in sentinel reconnect test#10424
yossigo merged 1 commit intoredis:unstablefrom
enjoy-binbin:fix_sentinel_reconnect_test

Conversation

@enjoy-binbin
Copy link
Contributor

We need to wait for sentinelTimer to kick in, and then
trigger the reconnect.

As for another change, i think we should better call
server_set_password before calling SENTINEL SET auth-pass.

Introduced in #10400

We need to wait for `sentinelTimer` to kick in, and then
trigger the reconnect.

As for another change, i think we should better call
`server_set_password` before calling SENTINEL SET auth-pass.

Introduced in redis#10400
@enjoy-binbin
Copy link
Contributor Author

enjoy-binbin commented Mar 13, 2022

the one that failed: https://github.com/enjoy-binbin/redis/actions/runs/1976493913/attempts/1
https://github.com/redis/redis/actions/runs/1977919125

23:02:43> Sentinels (re)connection following master ACL change: FAILED: Expected: Sentinel to be connected to master
(Jumping to next unit after error)
FAILED: caught an error in the test
assertion:Expected: Sentinel to be connected to master
    while executing
"error "assertion:$msg""
    (procedure "fail" line 2)
    invoked from within
"fail "Expected: Sentinel to be connected to master""
    ("uplevel" body line 32)
    invoked from within
"uplevel 1 $code"
Cleaning up...

success: https://github.com/enjoy-binbin/redis/actions/runs/1976659355

@enjoy-binbin enjoy-binbin requested a review from moticless March 13, 2022 15:03
@enjoy-binbin enjoy-binbin added the state:to-be-merged The PR should be merged soon, even if not yet ready, this is used so that it won't be forgotten label Mar 13, 2022
@yossigo yossigo merged commit 871fa12 into redis:unstable Mar 14, 2022
@enjoy-binbin enjoy-binbin deleted the fix_sentinel_reconnect_test branch March 14, 2022 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:to-be-merged The PR should be merged soon, even if not yet ready, this is used so that it won't be forgotten

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants