Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-96877

grpc_metrics.js test uses too aggressive timeouts

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • Fully Compatible
    • ALL
    • Networking & Obs 2024-11-11
    • 200

      The grpc_metrics.js test at one point starts a parallel mongo process and waits for up to 5 seconds for it to start. On sanitizer builds, this usually takes ~4 seconds, but sometimes can take longer than 5, causing a test failure.

      We should increase this timeout to account for sanitizer builds and reduce spurious failures.

      Example passing case (~1s startup time):

      [js_test:grpc_metrics] | 2024-11-07T04:38:06.443Z I  -        22810       [js] "shell: Started program","attr":{"pid":"283876","port":-1,"argv":["/data/mci/5122d3d35e0e594972ea15b4c1f8c3bc/src/dist-test/bin/mongo","--tls","--tlsAllowInvalidHostnames","--tlsCertificateKeyFile","jstests/libs/client.pem","--gRPC","--tlsCAFile","jstests/libs/ca.pem","mongodb://localhost:20791/?gRPC=true","--eval","print(\"Kill Test\\n\"); sleep(15000);"]}
      [js_test:grpc_metrics] d20790| 2024-11-07T04:38:07.553+00:00 I  NETWORK  6788700     [grpc-008e009c-833e-4c59-af09-4a6e5b5ae074-5] "Received first command on ingress connection since session start or auth handshake","attr":{"elapsedMillis":0}

      Example failure case:

      [js_test:grpc_metrics] | 2024-10-31T06:50:13.757Z I  -        22810       [js] "shell: Started program","attr":{"pid":"700154","port":-1,"argv":["/data/mci/bf29cc992a63ae036bc3c1566429a17f/src/dist-test/bin/mongo","--tls","--tlsAllowInvalidHostnames","--tlsCertificateKeyFile","jstests/libs/client.pem","--gRPC","--tlsCAFile","jstests/libs/ca.pem","mongodb://localhost:23791/?gRPC=true","--eval","print(\"Kill Test\\n\"); sleep(15000);"]}
      [js_test:grpc_metrics] d23790| 2024-10-31T06:50:19.070+00:00 I  NETWORK  6788700     [grpc-3ed3b729-3f7b-46b8-acec-f3a94fb6f8e8-5] "Received first command on ingress connection since session start or auth handshake","attr":{"elapsedMillis":33}
      

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: