Commit 2458519
committed
cloud_roles: run setenv on reactor thread
This patch changes boost tests that call setenv so that they run on a
reactor thread rather than the main thread. Without this change we end
up hitting this assertion:
test_cloud_roles_rpunit:
/home/nwatkins/src/redpanda/vbuild/release/clang/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:986:
void seastar::memory::cpu_pages::shrink(void *, size_t): Assertion
`object_cpu_id(ptr) == cpu_id' failed.
NOTE: it is not clear that this really fixes the issue, but at least the
issue doesn't appear to happen anymore. According to this seastar-dev
thread setenv is interacting with global state and the realloc that it
performs may involve some mixture of memory accessed by different cores,
before/after the low-level allocators are swapped out by seastar.
https://groups.google.com/g/seastar-dev/c/hSdTKn05Ei8/m/cH4bFvmEAgAJ
Overall it seems like we might want to consider getting rid of setenv
calls. There is only one in Redpanda proper (krb5 stuff).
Signed-off-by: Noah Watkins <[email protected]>1 parent 5739779 commit 2458519
File tree
2 files changed
+6
-6
lines changed- src/v/cloud_roles/tests
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
69 | | - | |
| 68 | + | |
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments