{"action":"opened","issue":{"url":"https://api.github.com/repos/paritytech/parity/issues/8217","repository_url":"https://api.github.com/repos/paritytech/parity","labels_url":"https://api.github.com/repos/paritytech/parity/issues/8217/labels{/name}","comments_url":"https://api.github.com/repos/paritytech/parity/issues/8217/comments","events_url":"https://api.github.com/repos/paritytech/parity/issues/8217/events","html_url":"https://github.com/paritytech/parity/issues/8217","id":308422942,"number":8217,"title":"`eth_getFilterLogs` does not return most logs between blocks 5,200,000 and 5,300,000","user":{"login":"brandoncurtis","id":2591290,"avatar_url":"https://avatars2.githubusercontent.com/u/2591290?v=4","gravatar_id":"","url":"https://api.github.com/users/brandoncurtis","html_url":"https://github.com/brandoncurtis","followers_url":"https://api.github.com/users/brandoncurtis/followers","following_url":"https://api.github.com/users/brandoncurtis/following{/other_user}","gists_url":"https://api.github.com/users/brandoncurtis/gists{/gist_id}","starred_url":"https://api.github.com/users/brandoncurtis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandoncurtis/subscriptions","organizations_url":"https://api.github.com/users/brandoncurtis/orgs","repos_url":"https://api.github.com/users/brandoncurtis/repos","events_url":"https://api.github.com/users/brandoncurtis/events{/privacy}","received_events_url":"https://api.github.com/users/brandoncurtis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-26T03:33:53Z","updated_at":"2018-03-26T03:33:53Z","closed_at":null,"author_association":"NONE","body":"> I'm running:\r\n>\r\n> - **Which Parity version?**: Parity/v1.9.5-stable-ff821da-20180321/x86_64-linux-gnu/rustc1.24.1\r\n> - **Which operating system?**: Linux\r\n> - **How installed?**: via .deb installer\r\n> - **Are you fully synchronized?**: yes\r\n> - **Which network are you connected to?**: ethereum\r\n> - **Did you try to restart the node?**: yes\r\n\r\n`parity --pruning=archive --fat-db=on --tracing=on`\r\n\r\n## Expected Behavior\r\n\r\n`eth_getFilterLogs` should return all of the logs that match the filter.\r\n\r\n## Actual Behaviour\r\n\r\n`eth_getFilterLogs` only returns a tiny subset of the logs between blocks 5,200,000 and 5,300,000.\r\n\r\nWe're currently at block 5,382,200.  This is a full-archive node, and I believe the last snapshot process may have been interrupted by a power outage.\r\n\r\nI've reset the node multiple times to no effect.  \r\n\r\nNo matter the filter I define, the logs stop shortly after 5,200,000 and start shortly before 5,300,000:\r\n```\r\n5201718\r\n5201718\r\n5201738\r\n5201742\r\n5201758\r\n5201780\r\n5201791\r\n5201791\r\n5201791\r\n5299928\r\n5299930\r\n5299957\r\n5299957\r\n5299966\r\n5299968\r\n5299971\r\n5300000\r\n```\r\n\r\nWhen I request blocks or transactions or even logs from this period, they return fine.\r\n\r\n## Request\r\n\r\nI know I can fix this problem by wiping the database and completely starting over, but this seems like a pretty serious bug—history is silently broken!—and I'd like to do some debugging to figure it out.  Please advise."}}
{"actor":{"display_login":"brandoncurtis"}}