diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2004-10-05 15:18:32 +0000 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2004-10-05 15:18:32 +0000 |
commit | 7121d37498da9e92162065b818105cae641972ea (patch) | |
tree | 351dadb1f4ac270039e13ba67212148adedbd803 /ndb | |
parent | ab5c7a9e0e57fdfd75be02959165eb4555841d6a (diff) | |
download | mariadb-git-7121d37498da9e92162065b818105cae641972ea.tar.gz |
more and better arbitration warnings for cluster config
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/src/mgmsrv/ConfigInfo.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ndb/src/mgmsrv/ConfigInfo.cpp b/ndb/src/mgmsrv/ConfigInfo.cpp index e8f768d1968..9629c5e8904 100644 --- a/ndb/src/mgmsrv/ConfigInfo.cpp +++ b/ndb/src/mgmsrv/ConfigInfo.cpp @@ -3501,6 +3501,8 @@ check_node_vs_replicas(Vector<ConfigInfo::ConfigRuleSection>§ions, BaseString node_group_warning, arbitration_warning; const char *arbit_warn_fmt= "\n arbitrator with id %d and db node with id %d on same host %s"; + const char *arbit_warn_fmt2= + "\n arbitrator with id %d has no hostname specified"; ctx.m_userProperties.get("NoOfNodes", &n_nodes); for (i= 0, n= 0; n < n_nodes; i++){ @@ -3583,13 +3585,19 @@ check_node_vs_replicas(Vector<ConfigInfo::ConfigRuleSection>§ions, arbitration_warning.appfmt(arbit_warn_fmt, i, ii, host); } } + else + { + arbitration_warning.appfmt(arbit_warn_fmt2, i); + } } } } if (db_host_count > 1 && node_group_warning.length() > 0) ndbout_c("Cluster configuration warning:\n%s",node_group_warning.c_str()); if (db_host_count > 1 && arbitration_warning.length() > 0) - ndbout_c("Cluster configuration warning:%s",arbitration_warning.c_str()); + ndbout_c("Cluster configuration warning:%s%s",arbitration_warning.c_str(), + "\n Running arbitrator on the same host as a database node may" + "\n cause complete cluster shutdown in case of host failure."); } return true; } |