ER_READONLY error receives new reasons #2953
Labels
2.11
2.11 release and the associated technical debt
feature
A new functionality
reference
[location] Tarantool manual, Reference part
replication
[area] Related to Replication
Related dev. issue(s): tarantool/tarantool#5295
Part of the Errors epic
Product: Tarantool
Since: 2.11
Audience/target:
Root document:
SME: @ sergepetrenko
Follow-up of #2444 and #2445
When box.info.ro_reason is "synchro" and some operation throws an
ER_READONLY error, this error now might include the following reason:
This means that the current instance is indeed the synchro queue owner,
but it has noticed, that someone else in the cluster might start new
elections or might overtake the synchro queue soon.
This may be also detected by
box.info.election.term
becoming greater thanbox.info.synchro.queue.term
(this is the case for the second errormessage).
There is also a slightly different error message:
This means that the node simply cannot guarantee that it is still the
synchro queue owner (for example, after a restart, when a node still thinks
it is the queue owner, but someone else in the cluster has already
overtaken the queue).
Requested by @sergepetrenko in tarantool/tarantool@6cc1b1f
The text was updated successfully, but these errors were encountered: