Bug #2661 | Using same key on distinct and group by seems to create a busy-loop in mysql | ||
---|---|---|---|
Submitted: | 6 Feb 2004 2:59 | Modified: | 24 Feb 2004 14:35 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.0.15 | OS: | Solaris (Solaris 8 SPARC) |
Assigned to: | Timothy Smith | CPU Architecture: | Any |
[6 Feb 2004 2:59]
[ name withheld ]
[24 Feb 2004 14:35]
Timothy Smith
I did try to repeat this, on a sunfire100 running solaris 8, using MySQL 4.0.18. Unfortunately, it worked just fine. Can you try it with 4.0.18; or, can you upload your data to ftp.mysql.com:/pub/mysql/Incoming/bug2661.tar.gz? Please include all the files needed to repeat this. Here's an example of what I tried, after creating the tables you described. mysql> load data local infile '../data.txt' into table stuff (id); Query OK, 2000100 rows affected (24.99 sec) Records: 2000100 Deleted: 0 Skipped: 0 Warnings: 0 mysql> insert into stuffcount select distinct(id), count(*) from stuff group by id; Query OK, 1999200 rows affected (25.10 sec) Records: 1999200 Duplicates: 0 Warnings: 0 mysql> Bye mysqldev@sunfire100c:~/tsmith/x/mysql-standard-4.0.18-sun-solaris2.8-sparc-64bit> uname -a SunOS sunfire100c 5.8 Generic_108528-26 sun4u sparc SUNW,UltraAX-i2 mysqldev@sunfire100c:~/tsmith/x/mysql-standard-4.0.18-sun-solaris2.8-sparc-64bit>
[24 Feb 2004 23:37]
[ name withheld ]
I'll try to replicate the bug with 4.0.18 and report the results as soon as I have them.