mimir icon indicating copy to clipboard operation
mimir copied to clipboard

Distributor validation middleware does not return early when context is canceled

Open seizethedave opened this issue 7 months ago • 0 comments

Describe the bug

A recent trace showing 8+s spent in distributor's middleware: image

In this request, a (large) OTLP translation completed before the 5 second deadline, but request validation kept on trucking 8 seconds into the request.

Expected behavior

Distributor validation middleware should return reasonably soon after the context is canceled.

Environment

  • Infrastructure: K8s

Additional Context

seizethedave avatar Jul 03 '24 23:07 seizethedave