Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6482

Investigate changes in SERVER-71392: Track usage of JSON Schema for validation

    • Type: Icon: Investigation Investigation
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed

      Original Downstream Change Summary

      A new field (validator) was added for serverStatus.metrics.commands for only the collMod and create commands. The new field has this syntax:

      {
      create: {
      failed: Long("0"),
      validator :

      { total: Long("1"), jsonSchema: Long("1"), failed: Long("0")}

      total: Long("23")
      },

      Description of Linked Ticket

      Add additional counters in serverStatus().metrics.commands for collMod and create.

      Something like:

      {
      create: { 
      failed: Long("0"), 
      validator: { total: Long("0"), failed: Long("0"), jsonSchema: Long("0")}, 
      total: Long("23") 
      },
      collMod: { 
      failed: Long("0"), 
      validator: { total: Long("0"), failed: Long("0"), jsonSchema: Long("0")}, 
      total: Long("0") 
      }
      ...
      }
      

      Increment count for 'validator.total' if non-empty 'validator' object was passed as option to the command. Increment 'validator.jsonSchema' if $jsonSchema was used anywhere within 'validator' object. 

            Assignee:
            Unassigned Unassigned
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: