[COMPASS-6897] mongosh is stuck in infinite load state when trying to handle big documents Created: 06/Jun/23  Updated: 29/Oct/23  Resolved: 12/Jun/23

Status: Closed
Project: Compass
Component/s: Electron
Affects Version/s: None
Fix Version/s: 1.38.0

Type: Bug Priority: Critical - P2
Reporter: Sergey Petushkov Assignee: Le Roux Bodenstein
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS:
node.js / npm versions:
Additional info:


Issue Links:
Depends
depends on COMPASS-6795 mongodb-cloud-info not working with Ipv6 Closed
Documentation Changes: Not Needed
Sprint: Iteration Citipati, Iteration Dreadnoughtus

 Description   

Trying to serialize big-ish documents before they can be passed to the main process from shell worker process fails. To reproduce it's enough to run the following command in the embedded shell:

require("v8").serialize({a: "a".repeat(6000)})

An isolated reproduction:

ELECTRON_RUN_AS_NODE=1 ./usr/bin/mongodb-compass -e 'require("v8").serialize({a: "a".repeat(6000)})'

The issue is traced inside v8 and was introduced with the latest electron update. The issue is not happening in electron 23, but this major update will break support for Windows 7/8/8.1 systems, so we should consider how feasible it is for us to drop support for these.



 Comments   
Comment by Githook User [ 16/Jun/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore: Electron 23 COMPASS-6897 (#4509)

  • electron 23
  • workaround for ipv6 localhost resolution
  • better error message when the shell cannot connect
  • also alter dns result order for the shell
Comment by Githook User [ 14/Jun/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore: Electron 23 COMPASS-6897 (#4509)

  • electron 23
  • workaround for ipv6 localhost resolution
  • better error message when the shell cannot connect
  • also alter dns result order for the shell
Comment by Githook User [ 13/Jun/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore: Electron 23 COMPASS-6897 (#4509)

  • electron 23
  • workaround for ipv6 localhost resolution
  • better error message when the shell cannot connect
  • also alter dns result order for the shell
Comment by Githook User [ 13/Jun/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore: Electron 23 COMPASS-6897 (#4509)

  • electron 23
  • workaround for ipv6 localhost resolution
  • better error message when the shell cannot connect
  • also alter dns result order for the shell
Comment by Githook User [ 12/Jun/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: chore: Electron 23 COMPASS-6897 (#4509)

  • electron 23
  • workaround for ipv6 localhost resolution
  • better error message when the shell cannot connect
  • also alter dns result order for the shell
Generated at Wed Feb 07 22:44:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.