3320
MariaDBERRORNotableResource GroupsHIGH confidence
Failed to bind thread to resource group
Production Risk
Low — the thread continues running in its current group.
How to reproduce
trigger — this will error
trigger — this will error
SET RESOURCE GROUP rg_highcpu FOR THREAD_ID(42);
expected output
ERROR 3320 (HY000): Failed to bind resource group 'rg_highcpu' to thread 42.
Fix
Correct the VCPU range
Correct the VCPU range
ALTER RESOURCE GROUP rg_highcpu VCPU = 0-1;
Why this works
Restricting VCPU to available cores allows the OS to honour the affinity request.
What not to do
✕
Sources
Official documentation ↗
MySQL 8.0 — 3320 ER_RESOURCE_GROUP_BIND_ERROR
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev