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

Fixed ports_vlans bulk delete from crashing MySQL #11009

Closed
wants to merge 1 commit into from

Conversation

laf
Copy link
Member

@laf laf commented Jan 8, 2020

DO NOT DELETE THIS TEXT

Please note

Please read this information carefully. You can run ./scripts/pre-commit.php to check your code before submitting.

Testers

If you would like to test this pull request then please run: ./scripts/github-apply <pr_id>, i.e ./scripts/github-apply 5926
After you are done testing, you can remove the changes with ./scripts/github-remove. If there are schema changes, you can ask on discord how to revert.

This should fix: https://community.librenms.org/t/vlan-discovery-crashes-mysql-database-after-update-to-v1-43/5394

We've been seeing the same thing where our MySQL instance was restarting twice an hour. So far, 1 hour later it's been stable. Will report back if we see issues.

I chose 50 as an arbitrary number. I couldn't find any data on max size for queries other than packet size which is a per install. We can increase / decrease that number if need to.

@murrant
Copy link
Member

murrant commented Jan 8, 2020

This pull request has been mentioned on LibreNMS Community. There might be relevant details there:

https://community.librenms.org/t/vlan-discovery-crashes-mysql-database-after-update-to-v1-43/5394/4

@laf laf closed this Jan 8, 2020
@laf laf deleted the bug/community-5394 branch January 8, 2020 15:42
@laf
Copy link
Member Author

laf commented Jan 8, 2020

Bad patch, ignore :)

@lock lock bot locked as resolved and limited conversation to collaborators Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants