Skip to content

Query frontend slow log warning: invalid Read on closed Body #3111

@yeya24

Description

@yeya24

We are seeing a lot of warnings in the Thanos Query frontend slow log http: invalid Read on closed Body. Since it uses Cortex Query frontend as a library, I tested the Cortex one and it has the same problem.

The warning occurs when it logs a POST request. It doesn't affect anything but it is annoying.

level=warn ts=2020-08-31T15:01:31.642718692Z caller=frontend.go:198 org_id=fake traceID=f8ac3a930226002 msg="unable to parse form for request" err="http: invalid Read on closed Body"
level=info ts=2020-08-31T15:01:31.6427589Z caller=frontend.go:206 org_id=fake traceID=f8ac3a930226002 msg="slow query detected" method=POST host= path=/api/v1/query time_taken=1m3.598993508s
level=warn ts=2020-08-31T15:02:16.45874421Z caller=frontend.go:198 org_id=fake traceID=653a2ed25929e383 msg="unable to parse form for request" err="http: invalid Read on closed Body"
level=info ts=2020-08-31T15:02:16.458782837Z caller=frontend.go:206 org_id=fake traceID=653a2ed25929e383 msg="slow query detected" method=POST host= path=/api/v1/query time_taken=44.715073818s
level=warn ts=2020-08-31T15:02:28.766424824Z caller=frontend.go:198 org_id=fake traceID=2382a13b1e6ef89 msg="unable to parse form for request" err="http: invalid Read on closed Body"
level=info ts=2020-08-31T15:02:28.766461552Z caller=frontend.go:206 org_id=fake traceID=2382a13b1e6ef89 msg="slow query detected" method=POST host= path=/api/v1/query time_taken=12.206554463s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions