{"action":"closed","issue":{"url":"https://api.github.com/repos/MSOpenTech/redis/issues/243","labels_url":"https://api.github.com/repos/MSOpenTech/redis/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/MSOpenTech/redis/issues/243/comments","events_url":"https://api.github.com/repos/MSOpenTech/redis/issues/243/events","html_url":"https://github.com/MSOpenTech/redis/issues/243","id":76155811,"number":243,"title":"crash using slaveof targeting server with persistence-available no","user":{"login":"mattclay","id":806360,"avatar_url":"https://avatars.githubusercontent.com/u/806360?v=3","gravatar_id":"","url":"https://api.github.com/users/mattclay","html_url":"https://github.com/mattclay","followers_url":"https://api.github.com/users/mattclay/followers","following_url":"https://api.github.com/users/mattclay/following{/other_user}","gists_url":"https://api.github.com/users/mattclay/gists{/gist_id}","starred_url":"https://api.github.com/users/mattclay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattclay/subscriptions","organizations_url":"https://api.github.com/users/mattclay/orgs","repos_url":"https://api.github.com/users/mattclay/repos","events_url":"https://api.github.com/users/mattclay/events{/privacy}","received_events_url":"https://api.github.com/users/mattclay/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-13T23:10:21Z","updated_at":"2015-05-15T13:41:27Z","closed_at":"2015-05-15T13:41:27Z","body":"Redis-64 version 2.8.19 will crash if you attempt to use it as a master when it is configured without persistence. Reproduction is easy:\r\n\r\n1) Run two instances of redis-server with --persistence-available no\r\n2) Issue the slaveof command to point one of the instances at the other\r\n\r\nAt this point the server being used as the master will crash. The logs on the server prior to the crash show the following:\r\n\r\n```\r\n[2604] 13 May 16:00:58.854 # Server started, Redis version 2.8.19\r\n[2604] 13 May 16:00:58.854 * The server is now ready to accept connections on port 6379\r\n[2604] 13 May 16:02:39.511 * Slave x.x.x.x:6379 asks for synchronization\r\n[2604] 13 May 16:02:39.511 * Full resync requested by slave x.x.x.x:6379\r\n[2604] 13 May 16:02:39.511 * Starting BGSAVE for SYNC with target: disk\r\n```\r\n\r\nI don't expect replication to work with persistence disabled, but it should return an error instead of crashing the server.\r\n\r\nThis is related to #212, although that issue makes no mention of a crash."}}