Clean up tojson() logging in bulk_api.js

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • Repl 2025-08-04, Repl 2025-08-18, Repl 2025-09-01, Repl 2025-09-15, Repl 2025-09-29, Repl 2025-10-13, Repl 2025-10-27, Repl 2025-11-10
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In bulk_api.js, we define the tojson() function for a WriteResult. This parses the writeErrors field, but it seems it stores it in an object that sets the field as writeError (without the 's' at the end). As a result, when logging a write response with a write error, it can seem as though the field is named writeError without an 's'.

            Assignee:
            Xuerui Fa
            Reporter:
            Xuerui Fa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: