rocksdb/cache
Peter Dillinger e466173d5c Print stack traces on frozen tests in CI (#10828)
Summary:
Instead of existing calls to ps from gnu_parallel, call a new wrapper that does ps, looks for unit test like processes, and uses pstack or gdb to print thread stack traces. Also, using `ps -wwf` instead of `ps -wf` ensures output is not cut off.

For security, CircleCI runs with security restrictions on ptrace (/proc/sys/kernel/yama/ptrace_scope = 1), and this change adds a work-around to `InstallStackTraceHandler()` (only used by testing tools) to allow any process from the same user to debug it. (I've also touched >100 files to ensure all the unit tests call this function.)

Pull Request resolved: https://github.com/facebook/rocksdb/pull/10828

Test Plan: local manual + temporary infinite loop in a unit test to observe in CircleCI

Reviewed By: hx235

Differential Revision: D40447634

Pulled By: pdillinger

fbshipit-source-id: 718a4c4a5b54fa0f9af2d01a446162b45e5e84e1
2022-10-18 00:35:35 -07:00
..
cache.cc Add enable_split_merge option for CompressedSecondaryCache (#10690) 2022-09-16 15:41:49 -07:00
cache_bench.cc Add (& fix) some simple source code checks (#8821) 2021-09-07 21:19:27 -07:00
cache_bench_tool.cc Call experimental new clock cache HyperClockCache (#10684) 2022-09-16 12:47:29 -07:00
cache_entry_roles.cc Add a dedicated cache entry role for blobs (#10601) 2022-08-29 16:11:59 -07:00
cache_entry_roles.h Expose `CacheEntryRole` and map keys for block cache stat collections (#9838) 2022-04-14 09:38:55 -07:00
cache_entry_stats.h New stable, fixed-length cache keys (#9126) 2021-12-16 17:15:13 -08:00
cache_helpers.h Eliminate the copying of blobs when serving reads from the cache (#10297) 2022-07-06 18:57:29 -07:00
cache_key.cc Derive cache keys from SST unique IDs (#10394) 2022-08-12 13:49:49 -07:00
cache_key.h Derive cache keys from SST unique IDs (#10394) 2022-08-12 13:49:49 -07:00
cache_reservation_manager.cc Charge blob cache usage against the global memory limit (#10321) 2022-07-18 23:26:57 -07:00
cache_reservation_manager.h Account memory of FileMetaData in global memory limit (#9924) 2022-06-14 13:06:40 -07:00
cache_reservation_manager_test.cc Print stack traces on frozen tests in CI (#10828) 2022-10-18 00:35:35 -07:00
cache_test.cc Call experimental new clock cache HyperClockCache (#10684) 2022-09-16 12:47:29 -07:00
charged_cache.cc Charge blob cache usage against the global memory limit (#10321) 2022-07-18 23:26:57 -07:00
charged_cache.h Charge blob cache usage against the global memory limit (#10321) 2022-07-18 23:26:57 -07:00
clock_cache.cc Fix bug in HyperClockCache ApplyToEntries; cleanup (#10768) 2022-10-06 14:54:21 -07:00
clock_cache.h Call experimental new clock cache HyperClockCache (#10684) 2022-09-16 12:47:29 -07:00
compressed_secondary_cache.cc add SetCapacity and GetCapacity for secondary cache (#10712) 2022-09-29 19:15:04 -07:00
compressed_secondary_cache.h add SetCapacity and GetCapacity for secondary cache (#10712) 2022-09-29 19:15:04 -07:00
compressed_secondary_cache_test.cc Print stack traces on frozen tests in CI (#10828) 2022-10-18 00:35:35 -07:00
fast_lru_cache.cc Revamp, optimize new experimental clock cache (#10626) 2022-09-16 00:24:11 -07:00
fast_lru_cache.h Revamp, optimize new experimental clock cache (#10626) 2022-09-16 00:24:11 -07:00
lru_cache.cc Some clean-up of secondary cache (#10730) 2022-10-03 22:23:38 -07:00
lru_cache.h Some clean-up of secondary cache (#10730) 2022-10-03 22:23:38 -07:00
lru_cache_test.cc Print stack traces on frozen tests in CI (#10828) 2022-10-18 00:35:35 -07:00
sharded_cache.cc Revamp, optimize new experimental clock cache (#10626) 2022-09-16 00:24:11 -07:00
sharded_cache.h Revamp, optimize new experimental clock cache (#10626) 2022-09-16 00:24:11 -07:00