-
Notifications
You must be signed in to change notification settings - Fork 29
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
failover_promote
returns an error via force_inconsistency: true
#1399
Comments
Related to #1398 |
Already covered by tests in other pr #1682 |
The issue is still reproduced. @filonenko-mikhail DM me for details, please |
Please provide reproducer:
|
cartridge/cartridge/etcd2-client.lua Line 219 in 869a2bd
the same in cartridge/cartridge/stateboard-client.lua Line 122 in 869a2bd
I'll try to write a repro test |
Great thanks to @rosik for help to investigate the problem! |
Bug description
failover_promote
returns an error viaforce_inconsistency: true
. Reproduced in both stateboard cases (tarantool and etcd).Vclockkeeper value in stateboard storage was changed between
get_vclockkeeper
andset_vclockkeeper
calls in theforce_inconsistency
function.That check should be on the server (stateboard or etcd), not the client.
cartridge/cartridge/stateboard-client.lua
Lines 113 to 118 in 5142624
Needs extra investigation to fix etcd error.
Steps to reproduce
The failover is set to
storage-1-replica
andstorage-2-replica
withforce_inconsistency: false
.core-1
,storage-1
,storage-2
withforce_inconsistency: true
.On step 3 the error is returned:
Failed to promote leaders: Promotion succeeded, but inconsistency wasn't forced: Ordinal comparison failed (requested 5, current 7)
.cartridge/cartridge/stateboard-client.lua
Line 122 in 869a2bd
Actual behavior
Promotion succeeded, but inconsistency wasn't forced: Compare failed (101): [223 != 253]
cartridge/cartridge/etcd2-client.lua
Line 219 in 869a2bd
Promotion succeeded, but inconsistency wasn't forced: Ordinal comparison failed (requested 5, current 7)
cartridge/cartridge/stateboard-client.lua
Line 122 in 869a2bd
Expected behavior
No error returned.
The text was updated successfully, but these errors were encountered: