{"action":"created","issue":{"url":"https://api.github.com/repos/tarantool/tarantool/issues/3897","repository_url":"https://api.github.com/repos/tarantool/tarantool","labels_url":"https://api.github.com/repos/tarantool/tarantool/issues/3897/labels{/name}","comments_url":"https://api.github.com/repos/tarantool/tarantool/issues/3897/comments","events_url":"https://api.github.com/repos/tarantool/tarantool/issues/3897/events","html_url":"https://github.com/tarantool/tarantool/issues/3897","id":393113024,"node_id":"MDU6SXNzdWUzOTMxMTMwMjQ=","number":3897,"title":"box.info.memory().tx underflow","user":{"login":"locker","id":1114511,"node_id":"MDQ6VXNlcjExMTQ1MTE=","avatar_url":"https://avatars2.githubusercontent.com/u/1114511?v=4","gravatar_id":"","url":"https://api.github.com/users/locker","html_url":"https://github.com/locker","followers_url":"https://api.github.com/users/locker/followers","following_url":"https://api.github.com/users/locker/following{/other_user}","gists_url":"https://api.github.com/users/locker/gists{/gist_id}","starred_url":"https://api.github.com/users/locker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locker/subscriptions","organizations_url":"https://api.github.com/users/locker/orgs","repos_url":"https://api.github.com/users/locker/repos","events_url":"https://api.github.com/users/locker/events{/privacy}","received_events_url":"https://api.github.com/users/locker/received_events","type":"User","site_admin":false},"labels":[{"id":55629184,"node_id":"MDU6TGFiZWw1NTYyOTE4NA==","url":"https://api.github.com/repos/tarantool/tarantool/labels/bug","name":"bug","color":"eb6420","default":true},{"id":120488524,"node_id":"MDU6TGFiZWwxMjA0ODg1MjQ=","url":"https://api.github.com/repos/tarantool/tarantool/labels/vinyl","name":"vinyl","color":"000000","default":false}],"state":"open","locked":false,"assignee":{"login":"locker","id":1114511,"node_id":"MDQ6VXNlcjExMTQ1MTE=","avatar_url":"https://avatars2.githubusercontent.com/u/1114511?v=4","gravatar_id":"","url":"https://api.github.com/users/locker","html_url":"https://github.com/locker","followers_url":"https://api.github.com/users/locker/followers","following_url":"https://api.github.com/users/locker/following{/other_user}","gists_url":"https://api.github.com/users/locker/gists{/gist_id}","starred_url":"https://api.github.com/users/locker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locker/subscriptions","organizations_url":"https://api.github.com/users/locker/orgs","repos_url":"https://api.github.com/users/locker/repos","events_url":"https://api.github.com/users/locker/events{/privacy}","received_events_url":"https://api.github.com/users/locker/received_events","type":"User","site_admin":false},"assignees":[{"login":"locker","id":1114511,"node_id":"MDQ6VXNlcjExMTQ1MTE=","avatar_url":"https://avatars2.githubusercontent.com/u/1114511?v=4","gravatar_id":"","url":"https://api.github.com/users/locker","html_url":"https://github.com/locker","followers_url":"https://api.github.com/users/locker/followers","following_url":"https://api.github.com/users/locker/following{/other_user}","gists_url":"https://api.github.com/users/locker/gists{/gist_id}","starred_url":"https://api.github.com/users/locker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locker/subscriptions","organizations_url":"https://api.github.com/users/locker/orgs","repos_url":"https://api.github.com/users/locker/repos","events_url":"https://api.github.com/users/locker/events{/privacy}","received_events_url":"https://api.github.com/users/locker/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/tarantool/tarantool/milestones/33","html_url":"https://github.com/tarantool/tarantool/milestone/33","labels_url":"https://api.github.com/repos/tarantool/tarantool/milestones/33/labels","id":3386788,"node_id":"MDk6TWlsZXN0b25lMzM4Njc4OA==","number":33,"title":"1.10.3","description":"1.10 bugfix release","creator":{"login":"kostja","id":482910,"node_id":"MDQ6VXNlcjQ4MjkxMA==","avatar_url":"https://avatars2.githubusercontent.com/u/482910?v=4","gravatar_id":"","url":"https://api.github.com/users/kostja","html_url":"https://github.com/kostja","followers_url":"https://api.github.com/users/kostja/followers","following_url":"https://api.github.com/users/kostja/following{/other_user}","gists_url":"https://api.github.com/users/kostja/gists{/gist_id}","starred_url":"https://api.github.com/users/kostja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostja/subscriptions","organizations_url":"https://api.github.com/users/kostja/orgs","repos_url":"https://api.github.com/users/kostja/repos","events_url":"https://api.github.com/users/kostja/events{/privacy}","received_events_url":"https://api.github.com/users/kostja/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":23,"state":"open","created_at":"2018-05-30T09:19:47Z","updated_at":"2018-12-20T16:49:01Z","due_on":"2018-11-15T08:00:00Z","closed_at":null},"comments":1,"created_at":"2018-12-20T16:12:11Z","updated_at":"2018-12-20T16:54:02Z","closed_at":null,"author_association":"MEMBER","body":"**Tarantool version:**\r\n1.10.2-68-g037af04\r\n\r\n**OS version:**\r\nLinux\r\n\r\n**Bug description:**\r\nSeveral times I've seen the tx stat counter underflow on customer boxes:\r\n```\r\nunix/:/var/run/tarantool/storage_2_1.control> box.info.memory()\r\n---\r\n- cache: 2147427018\r\n  data: 684811975\r\n  tx: 18446744073650606200\r\n  lua: 3854009\r\n  net: 283510032\r\n  index: 168430459\r\n...\r\n\r\nunix/:/var/run/tarantool/storage_2_1.control> box.stat.vinyl().memory\r\n---\r\n- tuple_cache: 2147443856\r\n  tx: -58948352\r\n  level0: 704933709\r\n  page_index: 43998112\r\n  bloom_filter: 106164187\r\n...\r\n```\r\nNeed to figure out why it could happen and fix it.\r\n\r\n**Steps to reproduce:**\r\n???"},"comment":{"url":"https://api.github.com/repos/tarantool/tarantool/issues/comments/449064325","html_url":"https://github.com/tarantool/tarantool/issues/3897#issuecomment-449064325","issue_url":"https://api.github.com/repos/tarantool/tarantool/issues/3897","id":449064325,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTA2NDMyNQ==","user":{"login":"locker","id":1114511,"node_id":"MDQ6VXNlcjExMTQ1MTE=","avatar_url":"https://avatars2.githubusercontent.com/u/1114511?v=4","gravatar_id":"","url":"https://api.github.com/users/locker","html_url":"https://github.com/locker","followers_url":"https://api.github.com/users/locker/followers","following_url":"https://api.github.com/users/locker/following{/other_user}","gists_url":"https://api.github.com/users/locker/gists{/gist_id}","starred_url":"https://api.github.com/users/locker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locker/subscriptions","organizations_url":"https://api.github.com/users/locker/orgs","repos_url":"https://api.github.com/users/locker/repos","events_url":"https://api.github.com/users/locker/events{/privacy}","received_events_url":"https://api.github.com/users/locker/received_events","type":"User","site_admin":false},"created_at":"2018-12-20T16:54:02Z","updated_at":"2018-12-20T16:54:02Z","author_association":"MEMBER","body":"```C\r\nsize_t\r\ntx_manager_mem_used(struct tx_manager *xm)\r\n{\r\n\tstruct mempool_stats mstats;\r\n\tsize_t ret = 0;\r\n\r\n\tret += xm->write_set_size + xm->read_set_size;\r\n\tmempool_stats(&xm->tx_mempool, &mstats);\r\n\tret += mstats.totals.used;\r\n\tmempool_stats(&xm->txv_mempool, &mstats);\r\n\tret += mstats.totals.used;\r\n\tmempool_stats(&xm->read_interval_mempool, &mstats);\r\n\tret += mstats.totals.used;\r\n\tmempool_stats(&xm->read_view_mempool, &mstats);\r\n\tret += mstats.totals.used;\r\n\r\n\treturn ret;\r\n}\r\n```\r\n```\r\n(gdb) p ((struct vy_env *)0x29a9670).xm.read_set_size\r\n$66 = 451\r\n(gdb) p ((struct vy_env *)0x29a9670).xm.write_set_size\r\n$67 = 18446744073685028953\r\n```"}}
{"actor":{"display_login":"locker"}}