{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-core/issues/3125","repository_url":"https://api.github.com/repos/realm/realm-core","labels_url":"https://api.github.com/repos/realm/realm-core/issues/3125/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-core/issues/3125/comments","events_url":"https://api.github.com/repos/realm/realm-core/issues/3125/events","html_url":"https://github.com/realm/realm-core/issues/3125","id":371081180,"node_id":"MDU6SXNzdWUzNzEwODExODA=","number":3125,"title":"Investigate why logical file size is wrong in certain cases","user":{"login":"kspangsege","id":180705,"node_id":"MDQ6VXNlcjE4MDcwNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/180705?v=4","gravatar_id":"","url":"https://api.github.com/users/kspangsege","html_url":"https://github.com/kspangsege","followers_url":"https://api.github.com/users/kspangsege/followers","following_url":"https://api.github.com/users/kspangsege/following{/other_user}","gists_url":"https://api.github.com/users/kspangsege/gists{/gist_id}","starred_url":"https://api.github.com/users/kspangsege/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kspangsege/subscriptions","organizations_url":"https://api.github.com/users/kspangsege/orgs","repos_url":"https://api.github.com/users/kspangsege/repos","events_url":"https://api.github.com/users/kspangsege/events{/privacy}","received_events_url":"https://api.github.com/users/kspangsege/received_events","type":"User","site_admin":false},"labels":[{"id":644502608,"node_id":"MDU6TGFiZWw2NDQ1MDI2MDg=","url":"https://api.github.com/repos/realm/realm-core/labels/P:2%20Expected","name":"P:2 Expected","color":"bfdadc","default":false},{"id":3772949,"node_id":"MDU6TGFiZWwzNzcyOTQ5","url":"https://api.github.com/repos/realm/realm-core/labels/T:Bug","name":"T:Bug","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-10-17T13:39:36Z","updated_at":"2018-10-17T14:19:23Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Investigate:\r\n- Why is logical file size wrong in certain cases? (see below)\r\n- Why does `Group::verify()` not fail in the cases where it is wrong?\r\n\r\nIf a Realm file is opened, and then closed with no write transaction having taken place, then the file is left in a state where the logical file size is recorded as `24`.\r\n\r\nWhy is `24` wrong?\r\n- Because logical file size includes the file header, and the size of the file header itself is 24 bytes.\r\n- The file has a top array, and more, so the correct logical file size must be greater than just the file header.\r\n\r\ncc @finnschiermer @jedelbo "},"comment":{"url":"https://api.github.com/repos/realm/realm-core/issues/comments/430647437","html_url":"https://github.com/realm/realm-core/issues/3125#issuecomment-430647437","issue_url":"https://api.github.com/repos/realm/realm-core/issues/3125","id":430647437,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDY0NzQzNw==","user":{"login":"kspangsege","id":180705,"node_id":"MDQ6VXNlcjE4MDcwNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/180705?v=4","gravatar_id":"","url":"https://api.github.com/users/kspangsege","html_url":"https://github.com/kspangsege","followers_url":"https://api.github.com/users/kspangsege/followers","following_url":"https://api.github.com/users/kspangsege/following{/other_user}","gists_url":"https://api.github.com/users/kspangsege/gists{/gist_id}","starred_url":"https://api.github.com/users/kspangsege/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kspangsege/subscriptions","organizations_url":"https://api.github.com/users/kspangsege/orgs","repos_url":"https://api.github.com/users/kspangsege/repos","events_url":"https://api.github.com/users/kspangsege/events{/privacy}","received_events_url":"https://api.github.com/users/kspangsege/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T14:19:23Z","updated_at":"2018-10-17T14:19:23Z","author_association":"CONTRIBUTOR","body":"Here is the `realm-stat` source code: https://github.com/realm/realm-sync/blob/1551c0dec4e88758fe7d76d4f4fd749ca45ddd85/src/realm/sync/stat_command.cpp#L183-L189"}}
{"actor":{"display_login":"kspangsege"}}