innodb_kill_idle_transaction should be implemented in the server

Bug #907719 reported by Alexey Kopytov
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.5
Won't Fix
Wishlist
Unassigned
5.6
Fix Released
Wishlist
Laurynas Biveinis
5.7
Fix Released
Wishlist
Laurynas Biveinis

Bug Description

As suggested on percona-discussion, innodb_kill_idle_transaction should be implemented in the server rather than in InnoDB. This approach, besides resulting in a more simple patch, avoids locking kernel_mutex to iterate list of active transactions inside InnoDB.

Revision history for this message
Alexey Kopytov (akopytov) wrote :
Changed in percona-server:
status: New → Confirmed
Changed in percona-server:
importance: Undecided → Wishlist
Revision history for this message
Lixun Peng (P.Linux) (plx) wrote :

server_kill_idle_trx.patch

Revision history for this message
Lixun Peng (P.Linux) (plx) wrote :

This patch is we used.

+------------------------------+-------+
| Variable_name | Value |
+------------------------------+-------+
| trx_changes_idle_timeout | 0 |
| trx_idle_timeout | 0 |
| trx_readonly_idle_timeout | 0 |
+------------------------------+-------+
"trx_idle_timeout" like your "innodb_kill_idle_transaction".Priority first.
"trx_changes_idle_timeout" will kill the transaction with "update", "delete", "insert" queries.
"trx_readonly_idle_timeout" will kill the transaction with only "select" queries.

Revision history for this message
Lixun Peng (P.Linux) (plx) wrote :

server_kill_idle_trx.patch

Revision history for this message
Lixun Peng (P.Linux) (plx) wrote :

test-case

Revision history for this message
Lixun Peng (P.Linux) (plx) wrote :

server_kill_idle_trx.patch (version2)

use "thd->transaction.all" to find is the transaction contain changes-transaction or not.

Stewart Smith (stewart)
Changed in percona-server:
status: Confirmed → Triaged
tags: added: kill-idle-trx
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-2368

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.