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

Fix BYTES_WRITTEN accounting #2133

Closed

Conversation

igorcanadi
Copy link
Collaborator

BYTES_WRITTEN accounting doesn't work with disabled WAL. For example, this is what we
get in the LOG:

Cumulative writes: 9794K writes, 228M keys, 9794K commit groups, 1.0
writes per commit group, ingest: 0.00 GB, 0.00 MB/s

WAL bytes are tracked in a different statistic:
https://github.com/facebook/rocksdb/blob/master/db/internal_stats.h#L105.
BYTES_WRITTEN should count all the writes.

BYTES_WRITTEN accounting doesn't work with disabled WAL. For example, this is what we
get in the LOG:

```
Cumulative writes: 9794K writes, 228M keys, 9794K commit groups, 1.0
writes per commit group, ingest: 0.00 GB, 0.00 MB/s
```

WAL bytes are tracked in a different statistic:
https://github.com/facebook/rocksdb/blob/master/db/internal_stats.h#L105.
BYTES_WRITTEN should count all the writes.
@facebook-github-bot
Copy link
Contributor

Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and yours has expired.

Before we can review or merge your code, we need you to email cla@fb.com with your details so we can update your status.

@igorcanadi
Copy link
Collaborator Author

Trying to sign CLA on https://code.facebook.com/cla, I get "This content is no longer available" when I click "I agree" :(

@yiwu-arbug
Copy link
Contributor

Thank you for the fix, @igorcanadi ! Let me check how to fix the CLA problem.

@yiwu-arbug
Copy link
Contributor

@igorcanadi You need to email cla@fb.com The CLA form does not work for former employee :(

@igorcanadi
Copy link
Collaborator Author

@igorcanadi You need to email cla@fb.com The CLA form does not work for former employee :(

Will do, thanks!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@facebook-github-bot
Copy link
Contributor

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

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

3 participants