Skip to content

OS versions: 502s after upgrading v4.73.1 -> v4.73.2 #33494

@BCTBB

Description

@BCTBB

Fleet version: v4.73.2

Web browser and operating system: N/A


💥  Actual behavior

/api/latest/fleet/os_versions

The following query is returning approximately 1.15M records over 2 minutes. Details in linked 🧵 (More info)

SELECT
	os.id as os_id,
	sc.cve,
	sc.resolved_in_version,
	MIN(sc.created_at) as created_at
FROM software_cve sc
JOIN kernel_host_counts khc ON khc.software_id = sc.software_id
JOIN operating_systems os ON os.os_version_id = khc.os_version_id
WHERE os.id IN (<redacted>)
AND khc.hosts_count > 0
AND khc.team_id = <redacted> GROUP BY os.id, sc.cve, sc.resolved_in_version;

🛠️ To fix

TBD

🧑‍💻  Steps to reproduce

  1. TODO
  2. TODO

🕯️ More info (optional)

  1. Related to Increased DB Load and 502s After upgrading v4.72.0->v4.73.1 #33147
  2. Link to 🧵

Metadata

Metadata

Assignees

Labels

#g-security-complianceSecurity & Compliance product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.P1Critical: Broken workflow (critical bug), potential vuln, new feature for immediate Fleet needbugSomething isn't working as documentedcustomer-numa~critical bugThis is a critical bug and may require a patch release.~released bugThis bug was found in a stable release.

Type

No type

Projects

Status

QA Verified

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions