Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InternalStats::DumpCFMapStat: fix sum.w_amp #9065

Closed
wants to merge 1 commit into from

Conversation

rockeet
Copy link
Contributor

@rockeet rockeet commented Oct 21, 2021

sum w_amp will be a very large number(bytes_written + bytes_written_blob) when there is no any flush and ingest.

This PR set sum w_amp to zero if there is no any flush and ingest, this is conform to per-level w_amp computation.

@facebook-github-bot
Copy link
Contributor

@riversand963 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@riversand963 merged this pull request in 01bd86a.

@ajkr
Copy link
Contributor

ajkr commented Nov 15, 2021

Maybe use max double or -1 to indicate this special case if the large number bothers you. I think zero is confusing because it also (and more naturally) means writing nothing.

@rockeet
Copy link
Contributor Author

rockeet commented Nov 15, 2021

Maybe use max double or -1 to indicate this special case if the large number bothers you. I think zero is confusing because it also (and more naturally) means writing nothing.

We export this value to prometheus + grafana, any non-zero values than makes abnormal graph in grafana.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants