Got error 157 'Connection to NDB failed' from NDBINFO
2012-04-05 15:01
549 查看
mysql> use ndbinfo; 120405 13:53:37 [Warning] NDB: Could not acquire global schema lock (4009)Cluster Failure Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed
当mysql集群中管理节点故障,如ndb处于没有启动,shutdown,或网络异常的情况下。访问ndbifno中的表会出现错误
'Got error 157 'Connection to NDB failed' from NDBINFO'.(blocks,config_params除外)。
mysql> select count(1) from blocks; +----------+ | count(1) | +----------+ | 23 | +----------+ 1 row in set (0.00 sec) mysql> select count(1) from config_params; +----------+ | count(1) | +----------+ | 126 | +----------+ 1 row in set (0.00 sec) mysql> select count(1) from nodes; ERROR 1296 (HY000): Got error 157 'Connection to NDB failed' from NDBINFO
此时我们可以看到一些以ndb$开头的表,这些表有助于我们进一步研究mysql的ndbcluster。在不能访问NDB_MGM的情况下,是不能访问ndb$表的。
mysql> show tables; 120405 13:53:41 [Warning] NDB: Could not acquire global schema lock (4009)Cluster Failure +---------------------------+ | Tables_in_ndbinfo | +---------------------------+ | blocks | | cluster_operations | | cluster_transactions | | config_params | | counters | | diskpagebuffer | | logbuffers | | logspaces | | memoryusage | | ndb$columns | | ndb$counters | | ndb$dblqh_tcconnect_state | | ndb$dbtc_apiconnect_state | | ndb$diskpagebuffer | | ndb$logbuffers | | ndb$logspaces | | ndb$nodes | | ndb$operations | | ndb$pools | | ndb$resources | | ndb$tables | | ndb$test | | ndb$threadblocks | | ndb$threadstat | | ndb$transactions | | ndb$transporters | | nodes | | resources | | server_operations | | server_transactions | | threadblocks | | threadstat | | transporters | +---------------------------+ 33 rows in set, 1 warning (0.00 sec)
mysql官方文档中的描述
If the mysqld process was not started with the --ndbcluster option, ndbinfo is not available and is not displayed by SHOW DATABASES.
If mysqld was formerly connected to a MySQL Cluster but the cluster becomes unavailable (due to events such as cluster shutdown,
loss of network connectivity, and so forth), ndbinfo and its tables remain visible, but an attempt to access any tables (other than blocks
or config_params) fails with Got error 157 'Connection to NDB failed' from NDBINFO.
相关文章推荐
- ERROR 1296 (HY000): Got error 4243 'Index not found' from NDBCLUSTER & ndb_drop_index
- failed to open gcomm backend connection: 13: error while trying to listen 'tcp:/
- Error:Execution failed for task ':app:packageRelease'. > Failed to read key brautyfarm from store "G
- error: 'Failed to open logfile '/var/lib/mysql_ndbd/data/ndb_2_out.log' for write
- error:error C2664: 'calc' : cannot convert parameter 2 from 'int' to 'int []' Conversion fro
- db2 sql error due to 'from'
- error:MultiByteToWideChar cannot convert parameter 2 from 'char [10]' to 'unsigned short *'
- Error -27796: Failed to connect to server "ip地址": [10060] Connection timed out
- Error:svn: E175002: connection refused by the server svn: E175002: OPTIONS request failed on '
- Failed to install ***.apk on device '019417a3': Unable to open sync connection!解决方法
- Uncaught SyntaxError: Failed to execute 'querySelectorAll' on 'Element': '#00' is not a valid select
- Failed to sync Gradle project '项目名称(module)' Error:failed to find Build Tools revision 20.0.0
- Fiddler之makecert.exe提示Failed to acquire a security provider from issuer's centificate问题解决
- modelsim仿真ISE工程时出现# ** Error: (vlog-19) Failed to access library 'rtl_work' at "rtl_work
- faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed
- ERROR: Upgrade faifailed bin/mysqlcheck: Got error: 1045: Access denied for user 'root'@'localhost'
- error: failed to push some refs to 'https://github.com/.....'
- How to eliminate the compile error "conversion from 'double ' to 'float ', possible loss of data"
- ERROR 1296 (HY000): Got error 157 'Unknown error code' from NDBCLUSTER
- Error:Execution failed for task ':app:clean'. > Unable to delete directory: E:\jiajian\jiajian\app\b