Bug - duplicate inserts to the ticket_flag table with the MentionSeen key #531
Labels
1 - 🐞 bug 🐞
An issue with the system.
4 - internal Issue/MR
4 - verified
This issue or pull request was verified.
Environment
Expected behavior
No duplicate inserts to the ticket_flag table.
Actual behavior
It looks like znuny performs the insert of the ticket_flag key "MentionSeen" twice when viewing a ticket for the first time under certain conditions. This has to happen within a very short time because the entry in the DB and the duplicate entry error message usually appear in the same second or at most with a difference of one second.
ticket_id, ticket_key, ticket_value, create_time, create_by
How to reproduce
When a new ticket is viewed for the first time.
But it looks like the problem is caused by a race condition, it only occurs by a few tickets.
Additional information
Screenshots
The text was updated successfully, but these errors were encountered: