[MCOL-485] SELECT COUNT(*) may return wrong value Created: 2016-12-27  Updated: 2021-01-16  Resolved: 2021-01-16

Status: Closed
Project: MariaDB ColumnStore
Component/s: N/A
Affects Version/s: 1.0.6.1
Fix Version/s: 5.5.1

Type: Bug Priority: Minor
Reporter: Si Tong Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Environment:

CentOS release 6.5



 Description   

install mcs with mode multi+combined+external, with 3 PMs, using glusterfs as external storage, with replica 3, /etc/fstab is modified properly.

Reboot the machine of PM3, during the rebooting, "SELECT COUNT( * ) FROM t2" may got wrong value.

mysql> show create table t2;
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Table Create Table

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

t2 CREATE TABLE `t2` (
`c1` int(11) DEFAULT NULL,
`c2` int(11) DEFAULT NULL,
`c3` int(11) DEFAULT NULL,
`c4` int(11) DEFAULT NULL,
`c5` int(11) DEFAULT NULL,
`c6` int(11) DEFAULT NULL,
`c7` int(11) DEFAULT NULL,
`c8` int(11) DEFAULT NULL,
`c9` int(11) DEFAULT NULL,
`c10` int(11) DEFAULT NULL
) ENGINE=Columnstore DEFAULT CHARSET=latin1

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.01 sec)

reproduce step.
1. machine of PM3 start reboot.
2. continual execute the sql.

mysql> select count from t2;
ERROR 1815 (HY000): Internal error: The system is not yet ready to accept queries
mysql> select count from t2;
ERROR 1815 (HY000): Internal error: The system is not yet ready to accept queries
mysql> select count from t2;
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql> select count from t2;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 5
Current database: test

----------

count

----------

0

----------
1 row in set (16.46 sec) #####wrong value returned.

mysql> select count from t2;
----------

count

----------

24000000

----------
1 row in set (2.53 sec) #####correct value returned.



 Comments   
Comment by David Thompson (Inactive) [ 2016-12-28 ]

we'll need to investigate more but it could be a slight timing issue in startup where it recognizes the table but not the data.

Generated at Thu Feb 08 02:21:26 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.