Bug #41338 Cluster makes substitution of "poll()" by "select()" visible
Submitted: 9 Dec 2008 20:26 Modified: 11 Dec 2008 10:39
Reporter: Joerg Bruehe Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:Cluster 6.3.20 OS:Linux (Kernel 2.4)
Assigned to: CPU Architecture:Any

[9 Dec 2008 20:26] Joerg Bruehe
Description:
This effect is from the build of the "cluster 6.3.20" release:

=====
ndb.ndb_alter_table_online     [ fail ]

Failed to use CLOCK_MONOTONIC for clock_realtime, errno= 22
Failed to alloc epoll-array or calling epoll_create... falling back to select!: Function not implemented
.....
Failed to use CLOCK_MONOTONIC for clock_realtime, errno= 22
Failed to alloc epoll-array or calling epoll_create... falling back to select!: Function not implemented
--- /PATH/mysql-test/suite/ndb/r/ndb_alter_table_online.result
+++ /PATH/mysql-test/suite/ndb/r/ndb_alter_table_online.reject
@@ -672,6 +672,7 @@
 ENGINE=NDB;
 Warnings:
 Warning        1478    Row format FIXED incompatible with dynamic attribute b
+Falling back to select
 -- t1 --
 Version: #
 Fragment type: 5
@@ -702,6 +703,7 @@
 CREATE TABLE t1
 (pk1 INT NOT NULL COLUMN_FORMAT FIXED PRIMARY KEY,
 b INT COLUMN_FORMAT FIXED)ROW_FORMAT=DYNAMIC ENGINE=NDB;
+Falling back to select
 -- t1 --
 Version: #
 Fragment type: 5

mysqltest: Result content mismatch

Stopping All Servers
=====

I have it on Linux with a 2.4 kernel with both an x86 (32 bit) and x86_64 (64 bit) CPU, these are RedHat 3 machines:
> uname -a
Linux HoStNaMe 2.4.21-50.ELsmp #1 SMP Tue May 8 17:10:25 EDT 2007 i686 athlon i386 GNU/Linux
> cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 9)

How to repeat:
Run a current cluster binary on a system not providing "poll()".

Suggested fix:
I have not checked how a MySQL server message that it is
   Falling back to select
can appear in the test output in the client, but this looks buggy:
Such a message is appropriate in some diagnostic, log, or trace file, but not in the client output.
[11 Dec 2008 10:20] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/61320

2769 Tomas Ulin	2008-12-11
      Bug #41338  Cluster makes substitution of "poll()" by "select()" visible
[11 Dec 2008 10:39] Jon Stephens
Closed without further action per comment from Tomas.
[11 Dec 2008 14:20] Bugs System
Pushed into 5.1.30-ndb-6.2.17  (revid:tomas.ulin@sun.com-20081211102034-i38gvvqk79i65zdk) (version source revid:tomas.ulin@sun.com-20081211102034-i38gvvqk79i65zdk) (pib:5)
[11 Dec 2008 14:21] Bugs System
Pushed into 5.1.30-ndb-6.3.20  (revid:tomas.ulin@sun.com-20081211102034-i38gvvqk79i65zdk) (version source revid:tomas.ulin@sun.com-20081211141215-nfpn17her2yslias) (pib:5)
[11 Dec 2008 14:34] Bugs System
Pushed into 5.1.30-ndb-6.4.0  (revid:tomas.ulin@sun.com-20081211102034-i38gvvqk79i65zdk) (version source revid:tomas.ulin@sun.com-20081211143235-e7tktpbcz0r7q9yo) (pib:5)
[12 Dec 2008 23:28] Bugs System
Pushed into 6.0.9-alpha  (revid:tomas.ulin@sun.com-20081211102034-i38gvvqk79i65zdk) (version source revid:tomas.ulin@sun.com-20081211122135-kjgju39re3798iux) (pib:5)