YARN-2891. Failed Container Executor does not provide a clear error message. Contributed by Dustin Cote. (harsh)

This commit is contained in:
Harsh J 2014-12-04 03:16:08 +05:30
parent 799353e2c7
commit a31e016491
2 changed files with 4 additions and 1 deletions

View File

@ -59,6 +59,9 @@ Release 2.7.0 - UNRELEASED
IMPROVEMENTS IMPROVEMENTS
YARN-2891. Failed Container Executor does not provide a clear error
message. (Dustin Cote via harsh)
YARN-1979. TestDirectoryCollection fails when the umask is unusual. YARN-1979. TestDirectoryCollection fails when the umask is unusual.
(Vinod Kumar Vavilapalli and Tsuyoshi OZAWA via junping_du) (Vinod Kumar Vavilapalli and Tsuyoshi OZAWA via junping_du)

View File

@ -526,7 +526,7 @@ int check_dir(char* npath, mode_t st_mode, mode_t desired, int finalComponent) {
int filePermInt = st_mode & (S_IRWXU | S_IRWXG | S_IRWXO); int filePermInt = st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);
int desiredInt = desired & (S_IRWXU | S_IRWXG | S_IRWXO); int desiredInt = desired & (S_IRWXU | S_IRWXG | S_IRWXO);
if (filePermInt != desiredInt) { if (filePermInt != desiredInt) {
fprintf(LOGFILE, "Path %s does not have desired permission.\n", npath); fprintf(LOGFILE, "Path %s has permission %o but needs permission %o.\n", npath, filePermInt, desiredInt);
return -1; return -1;
} }
} }