percpu_rwlock assert sched_getcpu() within the range of visible CPUs is broken on OpenVZ #9619
Labels
area/docdb
YugabyteDB core features
kind/bug
This issue is a bug
priority/medium
Medium priority issue
Projects
Jira Link: DB-1453
In https://github.com/yugabyte/yugabyte-db/blob/master/src/yb/util/locks.h#L201 we have the following assert:
CHECK_LT(cpu, n_cpus_);
that checks that the processor we are scheduled on is within the range visible from/sys/devices/system/cpu/present
This, on some hypervisors like OpenVZ, fails because sched_getcpu() maps all host processors, but /sys exposes only the visible range. All details here: https://dev.to/yugabyte/visible-number-of-cpu-on-openvz-2h7d
The text was updated successfully, but these errors were encountered: