From 07581f1ab2cf410cefed98a9b71f28640a49cab6 Mon Sep 17 00:00:00 2001 From: Riya Khandelwal <113989101+riyakhdl@users.noreply.github.com> Date: Tue, 4 Oct 2022 09:01:06 +0530 Subject: [PATCH] YARN-6169 message on empty configuration file improved (#4952) --- .../src/main/native/container-executor/impl/configuration.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/configuration.c b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/configuration.c index baaa4dc423..3a5109fba4 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/configuration.c +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/configuration.c @@ -546,8 +546,8 @@ int read_config(const char *file_path, struct configuration *cfg) { if (cfg->size == 0) { free_configuration(cfg); - fprintf(ERRORFILE, "Invalid configuration provided in %s\n", file_path); - return INVALID_CONFIG_FILE; + fprintf(ERRORFILE, "Empty configuration file provided %s\n", file_path); + exit(INVALID_CONFIG_FILE); } return 0; }