-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Cluster Scalability
The file resharding_coordinator_service.cpp is very large and sometimes distributed bazel builds (often san builds) fail because the host doing the compilation doesn't have enough memory. That typically looks something like this:
ERROR: /home/ubuntu/mongo/src/mongo/db/s/BUILD.bazel:716:17: Compiling src/mongo/db/s/resharding/resharding_coordinator_service.cpp failed: (Killed): clang++ failed: error executing command (from target //src/mongo/db/s:sharding_runtime_d_with_debug) external/mongo_toolchain/stow/llvm-v4/bin/clang++ -U_FORTIFY_SOURCE '-std=c++20' -nostdinc++ ... (remaining 254 arguments skipped)
This file is ~3000 lines and contains several classes. Splitting each class into its own file should help address this issue.
- is related to
-
SERVER-97067 Apply bazel compile large mem tags for any sanitizer
- Closed