| Bug #17511 | INSERT: Erratic Errcode: 11 reporting and "Unknown error": Error 1105 | ||
|---|---|---|---|
| Submitted: | 17 Feb 2006 8:58 | Modified: | 21 Feb 2006 21:30 |
| Reporter: | Mark V | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 5.0.18-nt | OS: | Windows (WinXP Pro latest patches) |
| Assigned to: | CPU Architecture: | Any | |
[17 Feb 2006 8:58]
Mark V
[19 Feb 2006 0:11]
Mark V
Revision #2: Data table and contents
Attachment: INSERT_Behavior_DataTable.sql (application/octet-stream, text), 154.82 KiB.
[21 Feb 2006 15:39]
Valeriy Kravchuk
Thank you for a problem report. I was not able to repeat the problem you described neither with 5.0.19-BK on Linux nor with 5.0.18-nt on XP:
C:\work>mysql -uroot -p -P3307 -e "SOURCE INSERT_Behavior_DataTable.sql;"
Enter password: ****
C:\work>mysql -uroot -p -P3307 -e "SOURCE INSERT_Behavior.sql;"
Enter password: ****
+-----------------------------+
| |
+-----------------------------+
| Start insert into temp_q... |
+-----------------------------+
C:\work>
On Linux, executing statements "manually" in mysql I've got:
mysql> SELECT 'Start insert into temp_q...' AS '';
+-----------------------------+
| |
+-----------------------------+
| Start insert into temp_q... |
+-----------------------------+
1 row in set (0.00 sec)
mysql>
mysql> INSERT INTO `scratch`.`temp_q`( date, time, bid, bidsize, bid_min, bidsize_min, bid_max, bidsize_max, offer, offersize, offer_min, offersize_min, offer_max, offersize_max, quotecount )
-> (
-> SELECT
-> `t1`.`date`,
-> `t1`.`time`,
-> (CASE WHEN SUM( `t1`.`bidsize` ) = 0 THEN 0 ELSE SUM( `t1`.`bid` * `t1`.`bidsize`)/SUM( `t1`.`bidsize` ) END ) AS bid,
-> CAST( AVG( `t1`.`bidsize`) AS UNSIGNED ) AS bidsize,
-> MIN( `t1`.`bid`) AS bid_min,
-> MIN( `t1`.`bidsize`) AS bidsize_min,
-> MAX( `t1`.`bid`) AS bid_max,
-> MAX( `t1`.`bidsize`) AS bidsize_max,
-> (CASE WHEN SUM( `t1`.`offersize` ) = 0 THEN 0 ELSE SUM( `t1`.`offer` * `t1`.`offersize` )/SUM( `t1`.`offersize` ) END ) AS offer ,
-> CAST( AVG( `t1`.`offersize` ) AS UNSIGNED ) AS offersize,
-> MIN( `t1`.`offer` ) AS offer_min,
-> MIN( `t1`.`offersize` ) AS offersize_min,
-> MAX( `t1`.`offer` ) AS offer_max,
-> MAX( `t1`.`offersize` ) AS offersize_max,
-> COUNT(offer) AS quotecount
-> FROM
-> `scratch`.`quotes` AS `t1` FORCE INDEX ( idxdt, idxmode, idxbid, idxoffer)
-> WHERE `t1`.`mode` IN (1,2,3,5,6,12)
-> GROUP BY
-> `t1`.`date`, `t1`.`time`
-> ORDER BY date, time
-> );
Query OK, 300 rows affected (0.03 sec)
Records: 300 Duplicates: 0 Warnings: 0
mysql>
mysql> SHOW warnings;
Empty set (0.00 sec)
I used the latest test cases you uploaded. I can not repeat the behaviour you described.
[21 Feb 2006 20:56]
Mark V
Hi, Thanks again for your efforts. I've tried everything I can think of to try and resolve this; restarting the MySQL service, rebooting. I still get the same problem: D:\MySQL\SQL>mysql -u root <INSERT_Behavior_DataTable.sql D:\MySQL\SQL>mysql -u root <INSERT_Behavior.sql Start insert into temp_q... Level Code Message Error 11 Can't unlock file (Errcode: 11) Error 1105 Unknown error Warning 1196 Some non-transactional changed tables couldn't be rolled back D:\MySQL\SQL> In case it helps I'm running off a NTFS compressed drive. This just occured to me so apologies if I should have mentioned it before. Regards Mark
[21 Feb 2006 21:30]
Mark V
A full uninstall and re-install of the server seems to have done the trick. Pretty drastic, but it worked :) Consequently I've downgraded the severity and closed the bug report. Thanks again for all the good work.
