{"action":"created","issue":{"url":"https://api.github.com/repos/luin/ioredis/issues/389","repository_url":"https://api.github.com/repos/luin/ioredis","labels_url":"https://api.github.com/repos/luin/ioredis/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/luin/ioredis/issues/389/comments","events_url":"https://api.github.com/repos/luin/ioredis/issues/389/events","html_url":"https://github.com/luin/ioredis/issues/389","id":186466258,"number":389,"title":"Multi-exec issue on result","user":{"login":"kelchy","id":7106648,"avatar_url":"https://avatars.githubusercontent.com/u/7106648?v=3","gravatar_id":"","url":"https://api.github.com/users/kelchy","html_url":"https://github.com/kelchy","followers_url":"https://api.github.com/users/kelchy/followers","following_url":"https://api.github.com/users/kelchy/following{/other_user}","gists_url":"https://api.github.com/users/kelchy/gists{/gist_id}","starred_url":"https://api.github.com/users/kelchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelchy/subscriptions","organizations_url":"https://api.github.com/users/kelchy/orgs","repos_url":"https://api.github.com/users/kelchy/repos","events_url":"https://api.github.com/users/kelchy/events{/privacy}","received_events_url":"https://api.github.com/users/kelchy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-11-01T06:10:44Z","updated_at":"2016-11-02T04:28:34Z","closed_at":null,"body":"most of the times during the start of my node instance, I get this\r\n`[ [ null, 'OK' ], [ null, '{\"base\":[{\"base_id\":1}]}' ] ]`\r\nfor this command\r\n`redisClient.multi().select(5).get(key).exec()`\r\n\r\nbut for some, I get this\r\n`[ [ null, 'O' ], [ null, 'K' ] ]`\r\n\r\nlooks like the result of  select is being broken into 2.\r\nany ideas where this problem might be?"},"comment":{"url":"https://api.github.com/repos/luin/ioredis/issues/comments/257769670","html_url":"https://github.com/luin/ioredis/issues/389#issuecomment-257769670","issue_url":"https://api.github.com/repos/luin/ioredis/issues/389","id":257769670,"user":{"login":"kelchy","id":7106648,"avatar_url":"https://avatars.githubusercontent.com/u/7106648?v=3","gravatar_id":"","url":"https://api.github.com/users/kelchy","html_url":"https://github.com/kelchy","followers_url":"https://api.github.com/users/kelchy/followers","following_url":"https://api.github.com/users/kelchy/following{/other_user}","gists_url":"https://api.github.com/users/kelchy/gists{/gist_id}","starred_url":"https://api.github.com/users/kelchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelchy/subscriptions","organizations_url":"https://api.github.com/users/kelchy/orgs","repos_url":"https://api.github.com/users/kelchy/repos","events_url":"https://api.github.com/users/kelchy/events{/privacy}","received_events_url":"https://api.github.com/users/kelchy/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T04:28:33Z","updated_at":"2016-11-02T04:28:33Z","body":"Yes it was indeed related. I was able to find the real reason.\r\n\r\nIn my code base, initialization is very heavy. so redis takes more than 1 second to emit \"ready\"\r\nIn this situation, somewhere somehow, when I fetch a key from redis, it returns this erroneous response. I have patched my code to wait for \"ready\" before proceeding and it works.\r\n\r\nhowever, I think this behaviour is incorrect in a way that ioredis should have returned error instead\r\nof providing\r\n`[ [ null, 'O' ], [ null, 'K' ] ]`"}}
{"actor":{"display_login":"kelchy"}}