envoyproxy/envoy

Upstream Access Log can be incorrect if upstream stream outlives downstream

Open

#26,413 opened on Mar 28, 2023

View on GitHub
 (3 comments) (0 reactions) (0 assignees)C++ (5,373 forks)batch import
area/access_logarea/httpbughelp wanted

Repository metrics

Stars
 (27,997 stars)
PR merge metrics
 (Avg merge 8d) (378 merged PRs in 30d)

Description

Access Log: Can be incorrect if upstream stream outlives downstream

Description:

What issue is being seen? Describe what should be happening instead of the bug, for example: Envoy should not crash, the expected value isn't returned, etc.

As demonstrated by https://github.com/envoyproxy/envoy/pull/26196/files#diff-478cdae3dba52e78ed6d1a2e4e4eb4a1aba3e80178b6c8d14707501fc1fb2ddbR3413-R3498

There are some edge scenarios where the upstream access logs will not reflect the actuality of the upstream stream due to when the access logs are captured -- on downstream stream destruction.

Contributor guide