Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-96800

Break up file resharding_coordinator_service.cpp into several smaller files

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            chris.wolff@mongodb.com Chris Wolff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: