Percona's GET LOCK implementation has a limitation on identifier name

Bug #1555503 reported by Miguel Angel Nieto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Unknown
Unknown
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.6
Triaged
Wishlist
Unassigned
5.7
Triaged
Wishlist
Unassigned

Bug Description

Percona's GET LOCK implementation has a limitation on identifier name that Oracle's MySQL or Percona Server 5.5 doesn't have.

Percona Server 5.6.17 (before our implementation)

5.6.17

> select GET_LOCK(repeat('x', 195), 1);
+-------------------------------+
| GET_LOCK(repeat('x', 195), 1) |
+-------------------------------+
| 1 |
+-------------------------------+

Percona Server 5.6.29:

> select GET_LOCK(repeat('x', 195), 1);
ERROR 1059 (42000): Identifier name 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' is too long

We should remove it and make it "compatible" with upstream.

tags: added: i66580
Revision history for this message
Przemek (pmalkowski) wrote :

5.6.29-log MySQL Community Server:
slave1 [localhost] {msandbox} ((none)) > select GET_LOCK(repeat('x', 195), 1);
+-------------------------------+
| GET_LOCK(repeat('x', 195), 1) |
+-------------------------------+
| 1 |
+-------------------------------+
1 row in set (0.00 sec)

5.6.29 Percona Server:
mysql [localhost] {msandbox} ((none)) > select GET_LOCK(repeat('x', 195), 1);
ERROR 1059 (42000): Identifier name 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' is too long

5.7.10 MySQL Community Server:
mysql [localhost] {msandbox} ((none)) > select GET_LOCK(repeat('x', 195), 1);
ERROR 3057 (42000): Incorrect user-level lock name 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'.

5.7.10-3 Percona Server :
mysql [localhost] {msandbox} ((none)) > select GET_LOCK(repeat('x', 195), 1);
ERROR 3057 (42000): Incorrect user-level lock name 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'.

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

For 5.7, this is an upstream bug, please report it there and link here.

tags: added: upstream
tags: added: get-lock
Revision history for this message
Miguel Angel Nieto (miguelangelnieto) wrote :

Reported and upstream bug associated with this one.

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Based on upstream bug resolution, reclassifying this as a Wishlist bug "increase MDL object name length"

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-2478

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

Other bug subscribers

Remote bug watches

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