Unit test Bgc_ticket_manager_test.Several_tickets_test is failing on aarch64.
When compiling MySQL 8 on aarch64 and running the unit tests one of them fails.
On x86-64 it succeeds. I have tested this on 8.0.36/40/41 and they all fail.
Error:
[----------] 1 test from Bgc_ticket_manager_test
[ RUN ] Bgc_ticket_manager_test.Several_tickets_test
Start 17: rpl_channel_credentials
...
99% tests passed, 1 tests failed out of 89
Total Test time (real) = 1894.03 sec
The following tests FAILED:
16 - merge_large_tests (Timeout)
Errors while running CTest
make: *** [Makefile:91: test] Error 8
To reproduce:
--------------------------
Launch an aarch64 EC2 instance, for example a t4g.
wget
https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.41.tar.gz
tar -xzf mysql-8.0.41.tar.gz
sudo yum install -y cmake.aarch64 gcc-c++.aarch64 gcc.aarch64 openssl-devel.aarch64 ncurses-devel.aarch64 readline-devel.aarch64 libcurl-devel libtirpc-devel rpcgen
(cd ~ && rm -rf build && cmake -S ./mysql-8.0.41 -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community -DDOWNLOAD_BOOST=1 -DWITH_BOOST=.build/boost -DWITH_ROCKSDB=OFF -DWITH_PERCONA_AUDIT_LOG_FILTER=OFF -DWITH_ROUTER=OFF -DWITH_NDB=OFF -DWITH_NDBCLUSTER_STORAGE_ENGINE=OFF -DWITH_LDAP=OFF -DWITH_AUTHENTICATION_LDAP=OFF -DWITH_PERCONA_AUTHENTICATION_LDAP=OFF -DWITH_AUTHENTICATION_KERBEROS=OFF -DWITH_COREDUMPER=OFF && \
cd build && \
make -j$(nproc) &&\
make CTEST_OUTPUT_ON_FAILURE=1 test) 2>&1 | tee mysql-8.0.41.build.$(date '+%Y%m%d%H%M%S')
--------------------------
However, when creating a debug build (-DCMAKE_BUILD_TYPE=Debug) the unit test pass.
Has anyone come across this?
Any help to figure out why this is happening would really be appreciated.