queue icon indicating copy to clipboard operation
queue copied to clipboard

IDs of task can duplicated when mvсс is on

Open R-omk opened this issue 2 years ago • 2 comments

https://github.com/tarantool/queue/blob/ea8449b6fa06c373124cee0530e71c7fd7a11c78/queue/abstract/driver/fifo.lua#L70-L73

To minimize the possibility of conflicts, MVCC uses what is called best-effort visibility: for write transactions it chooses read-committed, for read transactions it chooses read-confirmed.

by default task_id:max read confirmed , this is the key reason why duplicates occur in the case of an race condition

R-omk avatar Jun 13 '23 10:06 R-omk

@R-omk Hi, do you have a reproducer?

better0fdead avatar Jun 22 '23 13:06 better0fdead

I just reported an obvious problem that someone encountered in the telegram chat.

I think you should use require('txn_proxy') to reproduce issue without external client. (or net box client)

R-omk avatar Jun 22 '23 13:06 R-omk