reason of can not insert rows into myisam table using HandlerSocktet

Bug #810356 reported by 林晓斌
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Expired
High
Unassigned

Bug Description

I try to insert one row into a myisam table, use perl client written as
"my $res = $hs->open_index(0, 'test', 'sbtest', 'PRIMARY', 'id,k,c,pad');
$res = $hs->execute_single(0, '+', ["1", "100", "a", "b"], 1, 0);"

After run the script, the row can not be shown when "select * from sbtest", but the primary key is occupied.

It seems that when HandlerSocket call the "ha_myisam::write_row(buf)", the first byte of buff is not set correctly (set as 0).

If I change it to 0xff, the row can be insert into the table.

Stewart Smith (stewart)
Changed in percona-server:
importance: Undecided → High
Changed in percona-server:
assignee: nobody → Patrick Crews (patrick-crews)
Stewart Smith (stewart)
tags: added: handlersocket
Changed in percona-server:
assignee: Patrick Crews (patrick-crews) → nobody
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Can you provide the script you used to test handlersocket?

Also, myisam table with fixed format seems to have issues, dynamic format seems to work well (http://www.pablowe.net/2011/03/handlersocket-edge-cases/). So, provide us your table structure as well.

Changed in percona-server:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Percona Server because there has been no activity for 60 days.]

Changed in percona-server:
status: Incomplete → Expired
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-491

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.