Skip to content

Reject partial database size results - #185

Open
eduardo-landin-mestre wants to merge 1 commit into
block:mainfrom
eduardo-landin-mestre:elandin/handle-row-errors
Open

eduardo-landin-mestre wants to merge 1 commit into
block:mainfrom
eduardo-landin-mestre:elandin/handle-row-errors

Conversation

@eduardo-landin-mestre

Copy link
Copy Markdown

Why?

The size.database collector does not check for errors reported after row iteration. If a query returns some rows and then fails, Blip reports the partial values as a successful database-size snapshot.

What?

Check rows.Err() before calculating totals or returning metrics. A fault-injection test verifies that the collector returns the stream error and discards partial values.

Testing

Started MySQL 8.0 and 8.4 with docker compose -f test/docker/docker-compose.yaml up -d, then ran go test ./.... The full suite passed.

@eduardo-landin-mestre
eduardo-landin-mestre marked this pull request as ready for review September 17, 2026 19:58

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant