{"action":"opened","issue":{"url":"https://api.github.com/repos/antirez/redis/issues/5301","repository_url":"https://api.github.com/repos/antirez/redis","labels_url":"https://api.github.com/repos/antirez/redis/issues/5301/labels{/name}","comments_url":"https://api.github.com/repos/antirez/redis/issues/5301/comments","events_url":"https://api.github.com/repos/antirez/redis/issues/5301/events","html_url":"https://github.com/antirez/redis/issues/5301","id":355819436,"node_id":"MDU6SXNzdWUzNTU4MTk0MzY=","number":5301,"title":"Lua set question when using min-slaves-to-write configure.","user":{"login":"evedark1","id":17999511,"node_id":"MDQ6VXNlcjE3OTk5NTEx","avatar_url":"https://avatars0.githubusercontent.com/u/17999511?v=4","gravatar_id":"","url":"https://api.github.com/users/evedark1","html_url":"https://github.com/evedark1","followers_url":"https://api.github.com/users/evedark1/followers","following_url":"https://api.github.com/users/evedark1/following{/other_user}","gists_url":"https://api.github.com/users/evedark1/gists{/gist_id}","starred_url":"https://api.github.com/users/evedark1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evedark1/subscriptions","organizations_url":"https://api.github.com/users/evedark1/orgs","repos_url":"https://api.github.com/users/evedark1/repos","events_url":"https://api.github.com/users/evedark1/events{/privacy}","received_events_url":"https://api.github.com/users/evedark1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-31T02:40:55Z","updated_at":"2018-08-31T02:40:55Z","closed_at":null,"author_association":"NONE","body":"I use Redis 4.0.10 and find something wrong when using Lua script.\r\nusing the following steps:\r\n\r\n1. set the configure with \"min-slaves-to-write=1\".\r\n2. start redis as master with no slave.\r\n3. I use redis-cli to execute \"SET test testval\", return \"(error) NOREPLICAS Not enough good slaves to write.\" as I hoped.\r\n4.  I use lua to call \"./redis-cli --eval write.lua test , testval\", but write success without error. The script:\r\nredis.cal(\"SET\", KEYS[1], ARGV[1])\r\n5. I can get the key write in lua script.\r\n\r\nI think I should get an error when using lua script. Is it a bug in Redis?"}}
{"actor":{"display_login":"evedark1"}}