{"action":"opened","issue":{"url":"https://api.github.com/repos/vstakhov/rspamd/issues/267","labels_url":"https://api.github.com/repos/vstakhov/rspamd/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/vstakhov/rspamd/issues/267/comments","events_url":"https://api.github.com/repos/vstakhov/rspamd/issues/267/events","html_url":"https://github.com/vstakhov/rspamd/issues/267","id":69784794,"number":267,"title":"fuzzy_add does not complete SQLite transactions","user":{"login":"moisseev","id":2275981,"avatar_url":"https://avatars.githubusercontent.com/u/2275981?v=3","gravatar_id":"","url":"https://api.github.com/users/moisseev","html_url":"https://github.com/moisseev","followers_url":"https://api.github.com/users/moisseev/followers","following_url":"https://api.github.com/users/moisseev/following{/other_user}","gists_url":"https://api.github.com/users/moisseev/gists{/gist_id}","starred_url":"https://api.github.com/users/moisseev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moisseev/subscriptions","organizations_url":"https://api.github.com/users/moisseev/orgs","repos_url":"https://api.github.com/users/moisseev/repos","events_url":"https://api.github.com/users/moisseev/events{/privacy}","received_events_url":"https://api.github.com/users/moisseev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-21T08:44:15Z","updated_at":"2015-04-21T08:44:15Z","closed_at":null,"body":"It seems that fuzzy_add does not complete SQLite transactions.\r\n\r\nAfter executing the command:\r\n```\r\n# rspamc -f 1 -w 20 fuzzy_add fuzzy.eml\r\nResults for file: fuzzy.eml\r\nsuccess = true;\r\n```\r\nfuzzy.db-journal file appears in /var/db/rspamd directory and then disappears in about 90 seconds.\r\nChanges not commited to fuzzy.db file.\r\n```\r\n# pkg info -E rspamd sqlite3\r\nrspamd-0.8.3\r\nsqlite3-3.8.9.0\r\n# uname -v\r\nFreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 22:51:51 UTC 2014     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC\r\n```\r\nrspamd.conf:\r\n```\r\nworker {\r\n    type = \"fuzzy\";\r\n    bind_socket = \"*:11335\";\r\n    hash_file = \"${DBDIR}/fuzzy.db\"\r\n    expire = 90d;\r\n    allow_update = \"127.0.0.1\";\r\n}\r\n```\r\nmodules.conf:\r\n```\r\nfuzzy_check {\r\n    min_bytes = 300;\r\n        rule {\r\n                servers = \"localhost:11335\";\r\n                servers = \"highsecure.ru:11335\";\r\n                symbol = \"FUZZY_UNKNOWN\";\r\n                mime_types = \"application/pdf\";\r\n                max_score = 20.0;\r\n                skip_unknown = yes;\r\n                fuzzy_map = {\r\n                        FUZZY_DENIED {\r\n                                max_score = 20.0;\r\n                                flag = 1\r\n                        }\r\n                        FUZZY_PROB {\r\n                                max_score = 10.0;\r\n                                flag = 2\r\n                        }\r\n                        FUZZY_WHITE {\r\n                                max_score = 2.0;\r\n                                flag = 3\r\n                        }\r\n                }\r\n        }\r\n}\r\n```"}}