You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by di...@apache.org on 2022/10/04 03:31:23 UTC

[hadoop] branch trunk updated: YARN-6169 message on empty configuration file improved (#4952)

This is an automated email from the ASF dual-hosted git repository.

dineshc pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 07581f1ab2c YARN-6169 message on empty configuration file improved (#4952)
07581f1ab2c is described below

commit 07581f1ab2cf410cefed98a9b71f28640a49cab6
Author: Riya Khandelwal <11...@users.noreply.github.com>
AuthorDate: Tue Oct 4 09:01:06 2022 +0530

    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 baaa4dc4234..3a5109fba4b 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;
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org