Skip to content

TBS: Fix incorrectly large pebble database lsm_size monitoring metric#17149

Merged
carsonip merged 2 commits intoelastic:mainfrom
carsonip:tbs-negative-lsm
Jun 9, 2025
Merged

TBS: Fix incorrectly large pebble database lsm_size monitoring metric#17149
carsonip merged 2 commits intoelastic:mainfrom
carsonip:tbs-negative-lsm

Conversation

@carsonip
Copy link
Copy Markdown
Member

@carsonip carsonip commented Jun 9, 2025

Motivation/summary

Fix negative lsm size in monitoring metric by bumping pebble to include upstream bugfix. This should stop occasional database storage limit exceeded errors due to negative lsm_size overflowed to a large int.

Checklist

- [ ] Update CHANGELOG.asciidoc to be done on release

  • Documentation has been updated

For functional changes, consider:

  • Is it observable through the addition of either logging or metrics?
  • Is its use being published in telemetry to enable product improvement?
  • Have system tests been added to avoid regression?

How to test these changes

Run apmbench / apmsoak against a TBS-enabled apm-server and observe that the lsm_size is not unrealistically large.

On a side note, I've used the setup to reproduce the bug and confirmed it is fixed.

Related issues

Fixes #17043

@carsonip carsonip requested a review from a team as a code owner June 9, 2025 16:59
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 9, 2025

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@carsonip carsonip added the backport-9.0 Automated backport to the 9.0 branch label Jun 9, 2025
@carsonip carsonip changed the title TBS: Fix negative pebble database lsm_size TBS: Fix negative pebble database lsm_size monitoring metric Jun 9, 2025
@carsonip carsonip added the v9.0.3 label Jun 9, 2025
@carsonip carsonip changed the title TBS: Fix negative pebble database lsm_size monitoring metric TBS: Fix incorrectly large pebble database lsm_size monitoring metric Jun 9, 2025
@carsonip carsonip enabled auto-merge (squash) June 9, 2025 19:42
@carsonip carsonip merged commit b6d397d into elastic:main Jun 9, 2025
17 checks passed
mergify bot pushed a commit that referenced this pull request Jun 9, 2025
…#17149)

Fix negative lsm size in monitoring metric by bumping pebble to include upstream bugfix. This should stop occasional database storage limit exceeded errors due to negative lsm_size overflowed to a large int.

(cherry picked from commit b6d397d)

# Conflicts:
#	NOTICE-fips.txt
#	NOTICE.txt
#	go.mod
#	go.sum
mergify bot added a commit that referenced this pull request Jun 9, 2025
…m_size monitoring metric (#17153)

* TBS: Fix incorrectly large pebble database lsm_size monitoring metric (#17149)

Fix negative lsm size in monitoring metric by bumping pebble to include upstream bugfix. This should stop occasional database storage limit exceeded errors due to negative lsm_size overflowed to a large int.

(cherry picked from commit b6d397d)

# Conflicts:
#	NOTICE-fips.txt
#	NOTICE.txt
#	go.mod
#	go.sum

* Fix merge conflict

---------

Co-authored-by: Carson Ip <[email protected]>
Co-authored-by: Carson Ip <[email protected]>
@rubvs rubvs mentioned this pull request Jun 17, 2025
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-9.0 Automated backport to the 9.0 branch v9.0.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TBS: incorrect reported database storage size

3 participants