ashish-goyal / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

redis get config dir will hang a client forever if the internal redis call to getcwd command fails #611

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What version of Redis you are using, in what kind of Operating System?
Seen on 2.2.8 and also on 2.9.0 on both CentOS 5.2 and MacOS. I expect it 
occurs on all linux variaties.

What is the problem you are experiencing?
Requesting config get dir via the redis-cli will hang the redis-cli forever if 
the cwd doesn't exist.

What steps will reproduce the problem?
1) Create /var/tmp/foo
2) Configure redis.conf and set dir to /var/tmp/foo.
3) Launch the server with the configuration file.
4) rm -rf /var/tmp/foo
5) redis-cli config get dir (this command will hang forever)

Please provide any additional information below.

Original issue reported on code.google.com by mleve...@gmail.com on 27 Jul 2011 at 4:03

GoogleCodeExporter commented 8 years ago
Thanks for the report. This has been fixed in the 2.2, 2.4 and unstable 
branches using this patch: 
https://github.com/antirez/redis/commit/bb831c313c32a64446484e66c275aaba55d2d818

Original comment by pcnoordh...@gmail.com on 28 Jul 2011 at 8:10