Open tuaris opened 2 years ago
I would not recommend manually deleting entries.
Google's list updates, which clamav-safebrowsing pulls from, deletes entries using indices on a sorted list. Thus arbitrarily removing entries can have unintended side effects such as updates removing incorrect entries.
In this case, it'd be better to start with a fresh list.
Duplicate keys might be due the original key not getting removed due to list misalignment and then Google adding the key back into the list.
As @kevlin2 has described it - this is a difficult problem to reproduce, and because you can purge and re-pull to work around it. I don't want to sink additional time into solving this bug.
If someone from the community wishes to fix it, you're welcome to submit a PR. But we won't spend any more time on it.
I will leave the issue open since it is a real bug, and in case someone else wishes to fix it.
I'm running into a problem where after a few successful builds, clamsb errors out with a duplicate entry error. I am using MySQL server 8.0 on Ubuntu Linux 20.04.
If I go in and delete the duplicate entry or use a new database it works for the next few builds until the same error (different key) appears.