Properly quote BSON objects in logs so they can be parsed by standard json parsers

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Diagnostics
    • None
    • Server Tooling & Methods
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Some BSON objects the server logs cannot be parsed by standard JSON parsers. This makes it so lobster cannot expand them, which makes debugging harder. Fixing this in lobster was deemed undesirable in EVG-7651. I'm not sure what the negative side affects are of this or the best way to accomplish this.

      [js_test:sharded_last_stable_backup_restore_simple] 2020-03-25T16:10:21.870+0000 c20034| 2020-03-25T16:10:21.870+0000 I  INITSYNC [replication-1] Initial Sync Attempt Statistics: { failedInitialSyncAttempts: 0, maxFailedInitialSyncAttempts: 10, initialSyncStart: new Date(1585152621359), initialSyncAttempts: [], fetchedMissingDocs: 0, appliedOps: 0, initialSyncOplogStart: Timestamp(1585152621, 37), initialSyncOplogEnd: Timestamp(1585152621, 37), databases: { databasesCloned: 2, admin: { collections: 2, clonedCollections: 2, start: new Date(1585152621403), end: new Date(1585152621444), elapsedMillis: 41, admin.system.keys: { documentsToCopy: 2, documentsCopied: 2, indexes: 1, fetchedBatches: 1, start: new Date(1585152621404), end: new Date(1585152621432), elapsedMillis: 28, receivedBatches: 1 }, admin.system.version: { documentsToCopy: 1, documentsCopied: 1, indexes: 1, fetchedBatches: 1, start: new Date(1585152621432), end: new Date(1585152621444), elapsedMillis: 12, receivedBatches: 1 } }, config: { collections: 8, clonedCollections: 8, start: new Date(1585152621444), end: new Date(1585152621868), elapsedMillis: 424, config.shards: { documentsToCopy: 0, documentsCopied: 0, indexes: 2, fetchedBatches: 0, start: new Date(1585152621445), end: new Date(1585152621488), elapsedMillis: 43, receivedBatches: 0 }, config.lockpings: { documentsToCopy: 0, documentsCopied: 0, indexes: 2, fetchedBatches: 0, start: new Date(1585152621488), end: new Date(1585152621524), elapsedMillis: 36, receivedBatches: 0 }, config.chunks: { documentsToCopy: 0, documentsCopied: 0, indexes: 4, fetchedBatches: 0, start: new Date(1585152621524), end: new Date(1585152621631), elapsedMillis: 107, receivedBatches: 0 }, config.transactions: { documentsToCopy: 0, documentsCopied: 0, indexes: 1, fetchedBatches: 0, start: new Date(1585152621631), end: new Date(1585152621655), elapsedMillis: 24, receivedBatches: 0 }, config.tags: { documentsToCopy: 0, documentsCopied: 0, indexes: 3, fetchedBatches: 0, start: new Date(1585152621655), end: new Date(1585152621712), elapsedMillis: 57, receivedBatches: 0 }, config.migrations: { documentsToCopy: 0, documentsCopied: 0, indexes: 2, fetchedBatches: 0, start: new Date(1585152621712), end: new Date(1585152621759), elapsedMillis: 47, receivedBatches: 0 }, config.locks: { documentsToCopy: 0, documentsCopied: 0, indexes: 3, fetchedBatches: 0, start: new Date(1585152621759), end: new Date(1585152621844), elapsedMillis: 85, receivedBatches: 0 }, config.version: { documentsToCopy: 1, documentsCopied: 1, indexes: 1, fetchedBatches: 1, start: new Date(1585152621844), end: new Date(1585152621868), elapsedMillis: 24, receivedBatches: 1 } } } }
      

            Assignee:
            Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: