You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by db...@apache.org on 2016/03/09 17:57:36 UTC

[1/2] incubator-trafodion git commit: [TRAFODION-1854] Trafodion cannot start on nodes with uppercase hostname

Repository: incubator-trafodion
Updated Branches:
  refs/heads/master ca1e5f104 -> e82ed976a


[TRAFODION-1854] Trafodion cannot start on nodes with uppercase hostname


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/4a99ff69
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/4a99ff69
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/4a99ff69

Branch: refs/heads/master
Commit: 4a99ff692d5f0d1e46ad6f6bd215fbcb8a65617c
Parents: e24ea17
Author: Liu Ming <mi...@esgyn.cn>
Authored: Sun Mar 6 16:17:24 2016 +0000
Committer: Liu Ming <mi...@esgyn.cn>
Committed: Sun Mar 6 16:17:24 2016 +0000

----------------------------------------------------------------------
 core/sqf/monitor/linux/shell.cxx | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/4a99ff69/core/sqf/monitor/linux/shell.cxx
----------------------------------------------------------------------
diff --git a/core/sqf/monitor/linux/shell.cxx b/core/sqf/monitor/linux/shell.cxx
index 7727c80..65d89f9 100755
--- a/core/sqf/monitor/linux/shell.cxx
+++ b/core/sqf/monitor/linux/shell.cxx
@@ -4569,6 +4569,18 @@ bool start_monitor( char *cmd_tail, bool warmstart, bool reintegrate )
     // Ensure that we are on a node that is part of the configuration
     char mynode[MPI_MAX_PROCESSOR_NAME];
     gethostname(mynode, MPI_MAX_PROCESSOR_NAME);
+    //JIRA: TRAFODION-1854, hostname contains upper case letters
+    //change all char in mynode to lowercase
+    //since cluster config strings will all in lowercase , see CTokenizer::NormalizeCase()
+    if(!VirtualNodes)  // for VirtualNodes, it use same gethostname, so do not tolower
+    {
+      char *tmpptr = mynode;
+      while ( *tmpptr )
+      {
+        *tmpptr = tolower( *tmpptr );
+	tmpptr++;
+      }
+    }
     bool nodeInConfig = false;
     for ( i = 0; i < NumNodes; i++ )
     {


[2/2] incubator-trafodion git commit: Merge [TRAFODION-1854] PR 366 Support hostnames with upper case chars

Posted by db...@apache.org.
Merge [TRAFODION-1854] PR 366 Support hostnames with upper case chars


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/e82ed976
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/e82ed976
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/e82ed976

Branch: refs/heads/master
Commit: e82ed976ac6bf2b39fbe910a772a5f22d2e8a7d3
Parents: ca1e5f1 4a99ff6
Author: Dave Birdsall <db...@apache.org>
Authored: Wed Mar 9 16:56:45 2016 +0000
Committer: Dave Birdsall <db...@apache.org>
Committed: Wed Mar 9 16:56:45 2016 +0000

----------------------------------------------------------------------
 core/sqf/monitor/linux/shell.cxx | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------