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

errorcodes.py doesn't check embedded C++ code in Python scripts

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0, 4.4.5, 4.0.24, 4.2.14
    • Affects Version/s: None
    • Component/s: Build
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.4, v4.2, v4.0
    • Service Arch 2021-03-08

      We seem to have ended up with a duplicate assert code 40088 between these two places:
      https://github.com/mongodb/mongo/blob/d5d4b4945fabfb772b758b95fbfa698c4448484e/src/mongo/util/generate_icu_init_cpp.py#L110
      https://github.com/mongodb/mongo/blob/d5d4b4945fabfb772b758b95fbfa698c4448484e/src/mongo/db/repl/replication_coordinator_impl.cpp#L767

      I believe this is because buildscripts/errorcodes.py isn't looking in .py files, but it probably can be easily adapted to do so.

      This issue is important because we actually have a problem report from the field with this exact error code.

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: