Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Got packet bigger than 'max_allowed_packet' bytes" w/MariaDB 5.5 & max_allowed_packet=32M #91

Open
novosirj opened this issue Nov 9, 2017 · 1 comment
Labels
Milestone

Comments

@novosirj
Copy link

novosirj commented Nov 9, 2017

Using MariaDB 5.5.50 and WW 3.7.0 r1993.

Increased my MariaDB max_allowed_packet setting to 32M to try to increase wwvnfs image import performance. This works fine set to 16M out of the box, but setting it to 32M resulted in the following (debugging enabled to show the problem):

[Warewulf::DataStore::SQL::MySQL->chunk_size()/157]: max_allowed_packet: 33554432 [Warewulf::DataStore::SQL::MySQL->chunk_size()/158]: Returning max_allowed_packet - 786432 [Warewulf::Vnfs->vnfs_import()/161]: Chunked 32768000 bytes of /root/centos-7-cuda-novosirj20171103.vnfs DBD::mysql::st execute failed: Got a packet bigger than 'max_allowed_packet' bytes at /usr/share/perl5/vendor_perl/Warewulf/DataStore/SQL/MySQL.pm line 551. ERROR in Warewulf::DataStore::SQL::MySQL->put_chunk()/552: put_chunk() failed with error: Got a packet bigger than 'max_allowed_packet' bytes

This appears to be related to line 159 of MySQL.pm:

return ($max_allowed_packet - 786432);

Increasing this value to 1048576 solved the problem. It appears as if this value either needs to be calculated more accurately or raised to provide an additional margin.

@bensallen bensallen added the bug label Nov 9, 2017
@bensallen bensallen added this to the 3.8 milestone Nov 9, 2017
@bensallen bensallen modified the milestones: 3.8, 3.9 Dec 21, 2017
@novosirj
Copy link
Author

novosirj commented Nov 8, 2018

It looks like things have changed significantly here since 3.7?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants