Fix IDL compiler's duplicate command check

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • Fully Compatible
    • Programmability 2025-07-07, Programmability 2025-07-21, Programmability 2025-08-04
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The IDL compiler currently throws a "duplicate symbol" error when we specify the same string for one command's command_name and another's command_alias. This error is not present when the same string is specified for one command's command_name and another command's command_name. 

      Option A (throws error):
      clusterMergeChunks:
      command_name: mergeChunks
      cpp_name: ClusterMergeChunks

      _shardsvrMergeChunks:
      command_name: _shardsvrMergeChunks
      command_alias: mergeChunks
      cpp_name: ShardsvrMergeChunks

      Option B (no error):
      clusterMergeChunks:
      command_name: mergeChunks
      cpp_name: ClusterMergeChunks

      _shardsvrMergeChunks:
      command_name: mergeChunks
      command_alias: _shardsvrMergeChunks
      cpp_name: ShardsvrMergeChunks

      We should remove the duplicate check for commands since the IDL doesn't have a holistic view of all the command names anyways. We should also investigate why this is the case.

              Assignee:
              Eduardo Lopez (Inactive)
              Reporter:
              Jane Tio (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: