imap MOVE produces duplicates due race

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello,

I meet the issue with MOVE command race in concurrent sessions - with cyrus 2.5 it produces duplicates:

=========> first session
Oct 18 13:08:20 brat43 imap[12566]: login: [10.0.1.13] push_test plaintext User logged in SESSIONID=<brat43-12566-1634551700-2-1084423788046543765>
Oct 18 13:08:20 brat43 imap[12566]: Expunged 1 messages from user.push_test
Oct 18 13:08:20 brat43 imap[12566]: USAGE push_test user: 0.002274 sys: 0.028111

<1634551700<YFS1 SELECT INBOX
>1634551700>* 3 EXISTS
* OK [UIDVALIDITY 1634534758] Ok
* OK [UIDNEXT 4] Ok
* OK [HIGHESTMODSEQ 4] Ok
YFS1 OK [READ-WRITE] Completed
<1634551700<YFS2 UID FETCH 3 (UID)
>1634551700>* 3 FETCH (UID 3)
YFS2 OK Completed (0.000 sec)
<1634551700<YFS3 MOVE 3 INBOX/trash
>1634551700>* 3 EXPUNGE
YFS3 OK [COPYUID 1634534758 3 1] Completed

=========> second session
Oct 18 13:08:20 brat43 imap[12581]: login: [10.0.1.12] push_test plaintext User logged in SESSIONID=<brat43-12581-1634551700-2-3981345002810855948> Oct 18 13:08:20 brat43 imap[12581]: user.push_test.trash: same message appears twice 1 2 Oct 18 13:08:20 brat43 imap[12581]: USAGE push_test user: 0.004432 sys: 0.016371

<1634551700<GBS1 SELECT INBOX
>1634551700>* 3 EXISTS
* OK [UIDVALIDITY 1634534758] Ok
* OK [UIDNEXT 4] Ok
* OK [HIGHESTMODSEQ 4] Ok
GBS1 OK [READ-WRITE] Completed
<1634551700<GBS2 UID FETCH 3 (UID)
>1634551700>* 3 FETCH (UID 3)
GBS2 OK Completed (0.000 sec)
<1634551700<GBS3 MOVE 3 INBOX/trash
>1634551700>* 3 EXPUNGE
GBS3 OK [COPYUID 1634534758 3 2] Completed


Is there any way to avoid duplicates creation by MOVE command in concurrent sessions ?
Was the issue fixed in 3.x branch ?


Best,
Deniss

------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T080da70d0af84e64-M99fe7eec01914576050b17bb
Delivery options: https://cyrus.topicbox.com/groups/info/subscription




[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux