Skip to content

Commit 07581f1

Browse files
authored
YARN-6169 message on empty configuration file improved (#4952)
1 parent 4891bf5 commit 07581f1

File tree

1 file changed

+2
-2
lines changed
  • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl

1 file changed

+2
-2
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/configuration.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ int read_config(const char *file_path, struct configuration *cfg) {
546546

547547
if (cfg->size == 0) {
548548
free_configuration(cfg);
549-
fprintf(ERRORFILE, "Invalid configuration provided in %s\n", file_path);
550-
return INVALID_CONFIG_FILE;
549+
fprintf(ERRORFILE, "Empty configuration file provided %s\n", file_path);
550+
exit(INVALID_CONFIG_FILE);
551551
}
552552
return 0;
553553
}

0 commit comments

Comments
 (0)