re-connect connectionID is wrong

Bug #617537 reported by Andrew Hutchings
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
Fix Released
Low
Andrew Hutchings
Dexter
Fix Released
Low
Andrew Hutchings
Drizzle Client & Protocol Library
Won't Fix
Undecided
Unassigned

Bug Description

drizzle> show processlist\G
*************************** 1. row ***************************
     ID: 1
   USER: unauthenticated
   HOST: 127.0.0.1
     DB:
COMMAND: Query
   TIME: 0
  STATE: Sending data
   INFO: show processlist
1 row in set, 1 warning (0 sec)

drizzle> kill 1;
Query OK, 0 rows affected (0 sec)

drizzle> show processlist;
ERROR:
drizzle_state_read:lost connection to server (EOF)
No connection. Trying to reconnect...
Connection id: 3
Current database: *** NONE ***

drizzle> show processlist\G
*************************** 1. row ***************************
     ID: 2
   USER: unauthenticated
   HOST: 127.0.0.1
     DB:
COMMAND: Query
   TIME: 0
  STATE: Sending data
   INFO: show processlist
1 row in set, 1 warning (0 sec)

Related branches

Revision history for this message
Andrew Hutchings (linuxjedi) wrote :

Happens due to bug in drizzle_con_thread_id(), part of the libdrizzle library.

Revision history for this message
Andrew Hutchings (linuxjedi) wrote :

move back to drizzle since libdrizzle merging in

Changed in libdrizzle:
status: New → Won't Fix
Revision history for this message
Andrew Hutchings (linuxjedi) wrote :

this is because drizzle_client plugin passes global_thread_id which has already been incremented.

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.