Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-3104

Failing GridFS test on Node Carbon

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.4
    • Component/s: Testing
    • Labels:
      None

      The solution might just be to skip this test on node < v10. currently it is skipped for node < v8, and it doesn't error on later versions of node. However, this could also indicate a deeper bug in GridFS, so it should be investigated.

      [2021/02/08 17:53:30.234]   1) GridFS Stream
      [2021/02/08 17:53:30.234]        destroy publishes provided error:
      [2021/02/08 17:53:30.234]      Uncaught Error: Digest already called
      [2021/02/08 17:53:30.234]       at Hash.update (crypto.js:99:16)
      [2021/02/08 17:53:30.234]       at writeRemnant (lib/gridfs-stream/upload.js:510:15)
      [2021/02/08 17:53:30.234]       at /data/mci/c48dd7bb9266f87bde77c51508894819/src/lib/gridfs-stream/upload.js:167:7
      [2021/02/08 17:53:30.234]       at waitForIndexes (lib/gridfs-stream/upload.js:483:12)
      [2021/02/08 17:53:30.234]       at GridFSBucketWriteStream.end (lib/gridfs-stream/upload.js:166:5)
      [2021/02/08 17:53:30.234]       at GridFSBucketWriteStream.Writable._destroy (_stream_writable.js:669:8)
      [2021/02/08 17:53:30.234]       at GridFSBucketWriteStream.destroy (internal/streams/destroy.js:37:8)
      [2021/02/08 17:53:30.234]       at GridFSBucketWriteStream.<anonymous> (test/functional/gridfs_stream.test.js:126:26)
      [2021/02/08 17:53:30.234]       at /data/mci/c48dd7bb9266f87bde77c51508894819/src/lib/gridfs-stream/upload.js:286:13
      [2021/02/08 17:53:30.234]       at executeCallback (lib/operations/execute_operation.js:70:5)
      [2021/02/08 17:53:30.234]       at insertDocuments (lib/operations/insert_one.js:34:21)
      [2021/02/08 17:53:30.234]       at handleCallback (lib/utils.js:102:55)
      [2021/02/08 17:53:30.234]       at coll.s.topology.insert (lib/operations/common_functions.js:262:5)
      [2021/02/08 17:53:30.234]       at handler (lib/core/sdam/topology.js:943:24)
      [2021/02/08 17:53:30.234]       at fn (lib/cmap/connection_pool.js:350:13)
      [2021/02/08 17:53:30.234]       at handleOperationResult (lib/core/sdam/server.js:558:5)
      [2021/02/08 17:53:30.234]       at MessageStream.messageHandler (lib/cmap/connection.js:277:5)
      [2021/02/08 17:53:30.234]       at processIncomingData (lib/cmap/message_stream.js:144:12)
      [2021/02/08 17:53:30.234]       at MessageStream._write (lib/cmap/message_stream.js:42:5)
      [2021/02/08 17:53:30.234]       at doWrite (_stream_writable.js:396:12)
      [2021/02/08 17:53:30.234]       at writeOrBuffer (_stream_writable.js:382:5)
      [2021/02/08 17:53:30.234]       at MessageStream.Writable.write (_stream_writable.js:290:11)
      [2021/02/08 17:53:30.234]       at Socket.ondata (_stream_readable.js:639:20)
      [2021/02/08 17:53:30.234]       at addChunk (_stream_readable.js:263:12)
      [2021/02/08 17:53:30.234]       at readableAddChunk (_stream_readable.js:250:11)
      [2021/02/08 17:53:30.234]       at Socket.Readable.push (_stream_readable.js:208:10)
      [2021/02/08 17:53:30.234]       at TCP.onread (net.js:601:20)
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            eric.adum@mongodb.com Eric Adum (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: