Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.0, 2.1.0, 2.1.1, 2.2.0, 2.5.1, 2.5.0, 3.0, 3.0.1, 3.0.2
-
Security Level: Public
-
None
-
Untriaged
-
Unknown
Description
If we don't have a valid data directory memcached crashes when trying to create a bucket and doesn't give any good warning. See the code below.
if (!havedir) {
if (mkdir(dbname.c_str(), S_IRWXU) == -1)
}
We need to have better error handling for this case and others that may exist like it since it is very confusing for a user as to why memcached is crashing.