opentelemetry-collector-contrib icon indicating copy to clipboard operation
opentelemetry-collector-contrib copied to clipboard

Js/diagnose flaky prom tests

Open jspaleta opened this issue 2 years ago • 0 comments

Description: <Describe what has changed.>

  • Addressed scrape timing configuration that was too tight for production test environment, causing test to fail sometimes due to borderline slowness of the http response loop.
  • Added additional race condition protection to account for potential race between http server request processing and reciever response processing.

Link to tracking Issue: #11753

This also impacts several other prom receiver bugs, but we'll start with this one and then do a separate PR to unskip the rest once this appears to be working.

Testing: Local testing with synthetically slowed down ServeHTTP function using 500ms delay as environment target.

jspaleta avatar Aug 05 '22 23:08 jspaleta