Skip to content

libroach: more accurate encryption file statistics.#27388

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
mberhault:marc/registry_entry_for_plaintext
Jul 12, 2018
Merged

libroach: more accurate encryption file statistics.#27388
craig[bot] merged 1 commit intocockroachdb:masterfrom
mberhault:marc/registry_entry_for_plaintext

Conversation

@mberhault
Copy link
Copy Markdown
Contributor

@mberhault mberhault commented Jul 11, 2018

Address TODOs from #26802 for more accurate file count/size calculation.

Specifically:

  • plaintext files now have an entry in the file_registry
  • traverse file_registry when counting files
  • disable rocksdb deletions during the scan

Still some TODOs to improve usability (eg: report "unknown" files, logic for older versions of files that stick around) but this should already drastically improve file stats reporting.

Release note: None

@mberhault mberhault requested review from a team and bdarnell July 11, 2018 07:27
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@mberhault mberhault mentioned this pull request Jul 11, 2018
29 tasks
@mberhault mberhault force-pushed the marc/registry_entry_for_plaintext branch from fef37a9 to f558e11 Compare July 11, 2018 13:59
Copy link
Copy Markdown
Contributor

@bdarnell bdarnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 6 of 6 files at r1, 5 of 5 files at r2.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

Address TODOs from cockroachdb#26802 for more accurate file count/size calculation.

Specifically:
- plaintext files now have an entry in the file_registry
- traverse file_registry when counting files
- disable rocksdb deletions during the scan

Still some TODOs to improve usability (eg: report "unknown" files, logic for older versions of files that stick around) but this should already drastically improve file stats reporting.

Release note: None
@mberhault mberhault force-pushed the marc/registry_entry_for_plaintext branch from f558e11 to e1a2f2a Compare July 11, 2018 21:25
@mberhault
Copy link
Copy Markdown
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Jul 12, 2018
27388: libroach: more accurate encryption file statistics. r=mberhault a=mberhault

Address TODOs from #26802 for more accurate file count/size calculation.

Specifically:
- plaintext files now have an entry in the file_registry
- traverse file_registry when counting files
- disable rocksdb deletions during the scan

Still some TODOs to improve usability (eg: report "unknown" files, logic for older versions of files that stick around) but this should already drastically improve file stats reporting.

Release note: None

Co-authored-by: marc <marc@cockroachlabs.com>
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 12, 2018

Build succeeded

@craig craig bot merged commit e1a2f2a into cockroachdb:master Jul 12, 2018
@mberhault mberhault deleted the marc/registry_entry_for_plaintext branch July 12, 2018 05:40
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.

3 participants