<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Subject: mariadb-server-10.3: Indexes problem with replicatetd
Data<br>
Package: mariadb-server-10.3<br>
Version: 1:10.3.13-1<br>
Severity: important<br>
<br>
Dear Maintainer,<br>
<br>
</p>
<p>I tested importing dump on MariaDB + Galera (2 nodes
Master-Master) as follow :</p>
<ul class="alternate" type="square">
<li>Create a db</li>
<li>import dump sql (table in INNODB) on Node 1</li>
</ul>
<p>When I check some index cardinalities, I have on node 1 the right
value and on node 2 null value (0) e.g : </p>
<p>Node 1 : index on column username (varchar 255 utf-8) :
cardinality =38250<br>
Node 2 : index username : cardinality = 0</p>
<p>Indexes are not updated on node 2 and SQL queries on MariaDB Node
2 are too slow !</p>
<p>I tested different versions :</p>
<p>MariaDB 10.1.37 (Debian Stretch version) : cardinality is OK : no
problem (but not same cardinality ...) !<br>
MariaDB 10.2.22 (Debian MariaDB repository) : cardinality is NOT
ok : problem<br>
MariaDB 10.3.12 (Debian MariaDB repository) : cardinality is NOT
ok : problem </p>
<p>I run OPTIMIZE Table on Node 2 for build indexes and then indexes
are managed on Node 2. Strange things too : the cardinalities are
always differentes on the 2 nodes ...</p>
<p>Hope, you will be able to take a look ... </p>
<p><br>
<br>
<br>
-- System Information:<br>
Debian Release: buster/sid<br>
APT prefers testing<br>
APT policy: (500, 'testing')<br>
Architecture: amd64 (x86_64)<br>
<br>
Kernel: Linux 4.15.18-11-pve (SMP w/24 CPU cores)<br>
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE<br>
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8),
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)<br>
Shell: /bin/sh linked to /bin/bash<br>
Init: systemd (via /run/systemd/system)<br>
<br>
Versions of packages mariadb-server-10.3 depends on:<br>
ii adduser 3.118<br>
ii debconf [debconf-2.0] 1.5.71<br>
ii galera-3 25.3.25-1<br>
ii gawk 1:4.2.1+dfsg-1<br>
ii iproute2 4.20.0-2<br>
ii libc6 2.28-8<br>
ii libdbi-perl 1.642-1+b1<br>
ii libgnutls30 3.6.6-2<br>
ii libpam0g 1.3.1-5<br>
ii libstdc++6 8.3.0-2<br>
ii lsb-base 10.2018112800<br>
ii lsof 4.91+dfsg-1<br>
ii mariadb-client-10.3 1:10.3.13-1<br>
ii mariadb-common 1:10.3.13-1<br>
ii mariadb-server-core-10.3 1:10.3.13-1<br>
ii passwd 1:4.5-1.1<br>
ii perl 5.28.1-4<br>
ii psmisc 23.2-1<br>
ii rsync 3.1.3-5<br>
ii socat 1.7.3.2-2<br>
ii zlib1g 1:1.2.11.dfsg-1<br>
<br>
Versions of packages mariadb-server-10.3 recommends:<br>
ii libhtml-template-perl 2.97-1<br>
<br>
Versions of packages mariadb-server-10.3 suggests:<br>
ii bsd-mailx [mailx] 8.1.2-0.20180807cvs-1<br>
pn mariadb-test <none><br>
pn netcat-openbsd <none><br>
pn tinyca <none><br>
<br>
-- Configuration Files:<br>
/etc/mysql/debian-start changed:<br>
source /usr/share/mysql/debian-start.inc.sh<br>
if [ -f /etc/default/mysql ]; then<br>
. /etc/default/mysql<br>
fi<br>
MYSQL="/usr/bin/mysql --defaults-file=/etc/mysql/debian.cnf"<br>
MYADMIN="/usr/bin/mysqladmin
--defaults-file=/etc/mysql/debian.cnf"<br>
MYUPGRADE="/usr/bin/mysql_upgrade
--defaults-extra-file=/etc/mysql/debian.cnf --version-check"<br>
MYCHECK="/usr/bin/mysqlcheck
--defaults-file=/etc/mysql/debian.cnf"<br>
MYCHECK_SUBJECT="WARNING: mysqlcheck has found corrupt tables"<br>
MYCHECK_PARAMS="--all-databases --fast --silent"<br>
MYCHECK_RCPT="${MYCHECK_RCPT:-root}"<br>
trap "" SIGHUP<br>
(<br>
upgrade_system_tables_if_necessary;<br>
check_root_accounts;<br>
check_for_crashed_tables;<br>
) >&2 &<br>
exit 0<br>
<br>
/etc/mysql/mariadb.conf.d/50-mysqld_safe.cnf [Errno 2] Datei oder
Verzeichnis nicht gefunden:
'/etc/mysql/mariadb.conf.d/50-mysqld_safe.cnf'<br>
/etc/mysql/mariadb.conf.d/50-server.cnf [Errno 2] Datei oder
Verzeichnis nicht gefunden:
'/etc/mysql/mariadb.conf.d/50-server.cnf'<br>
<br>
-- debconf information:<br>
mariadb-server-10.3/postrm_remove_databases: false<br>
mariadb-server-10.3/nis_warning:<br>
mariadb-server-10.3/old_data_directory_saved:<br>
<br>
</p>
</body>
</html>