Bug #14954 | Inserting row is blocking other connections | ||
---|---|---|---|
Submitted: | 15 Nov 2005 17:00 | Modified: | 21 Aug 2006 22:19 |
Reporter: | Hakan Küçükyılmaz | Email Updates: | |
Status: | Unsupported | Impact on me: | |
Category: | MySQL Server: BDB | Severity: | S2 (Serious) |
Version: | 5.0.17-BK, 5.0.16 | OS: | Linux (Linux) |
Assigned to: | Alexey Botchkov | CPU Architecture: | Any |
[15 Nov 2005 17:00]
Hakan Küçükyılmaz
[15 Nov 2005 17:24]
Valeriy Kravchuk
Thank you for a problem report. Looks like a feature request for me, but need some check. Please, send the results of the show variables like 'bdb%'; stetement. Just to be sure when verifying...
[16 Nov 2005 10:21]
Hakan Küçükyılmaz
root@test>show variables like 'bdb%'; +---------------------+--------------+ | Variable_name | Value | +---------------------+--------------+ | bdb_cache_size | 8388572 | | bdb_home | /data/mysql/ | | bdb_log_buffer_size | 2097152 | | bdb_logdir | | | bdb_max_lock | 10000 | | bdb_shared_data | OFF | | bdb_tmpdir | /tmp/ | +---------------------+--------------+ 7 rows in set (0.00 sec)
[20 Nov 2005 13:39]
Valeriy Kravchuk
Verified just as described on 5.0.17-BK (ChangeSet@1.1969, 2005-11-17 15:08:49+01:00, ...) on Linux. The result (hang of session 2 untill transaction finished in session 1) does not depent on bdb_shared_data setting (as I though for some reason initially...)
[24 Nov 2005 0:32]
Michael Ubell
I suspect that the Bdb Database (table) is not being opened with the DB_READUNCOMMITTED flag. This is required for database handles which are used for updates that will be concurrent with uncommitted reads. Please see: http://www.sleepycat.com/docs/api_c/db_open.html#DB_READ_UNCOMMITTED
[6 Feb 2006 18:36]
Jim Winstead
Note that the patch for supporting READ COMMITTED is still pending, as part of Bug #15541. Someone needs to decide if all BDB tables should be opened using DB_READUNCOMMITTED. There is some performance penalty involved in doing so.