data checking at dropbox
play

Data Checking at Dropbox David Mah Dropbox Problems we are - PowerPoint PPT Presentation

Data Checking at Dropbox David Mah Dropbox Problems we are tackling Examples of Checkers Generic Model for a Checker Our garbage collector had a rarely hit off by one bug Our garbage collector had a rarely hit off by one bug that resulted


  1. Data Checking at Dropbox David Mah Dropbox

  2. Problems we are tackling Examples of Checkers Generic Model for a Checker

  3. Our garbage collector had a rarely hit off by one bug

  4. Our garbage collector had a rarely hit off by one bug that resulted in removing user data that should not have been deleted

  5. The erasure encoding library we use actually is not thread-safe

  6. The erasure encoding library we use actually is not thread-safe, and in 0.0001% of re-encodes, we would corrupt our user data blocks

  7. As data passed through a particular machine

  8. As data passed through a particular machine, it would flip some bits of user data

  9. Some classes of problems Conditions of Scale Race Conditions Hardware Unreliability

  10. Problems we are tackling Examples of Checkers Generic Model for a Checker

  11. Block Scrubber [Checksum 1][Block 1] [Checksum 2][Block 2] ..

  12. Block Scrubber [Checksum 1][Block 1] [Checksum 2][Block 2] .. Loop over every block, recompute the checksum, compare

  13. Hash Database Scanner key → [server, server, server … ] key → [server, server, server … ] ...

  14. Hash Database Scanner key → [server, server, server … ] key → [server, server, server … ] ... Loop over every key, RPC to those servers, “Do you have this block?”

  15. Filesystem Verifier File Tree ID → [mutation 1, mutation 2, mutation 3.. ] File Tree ID → [mutation 1, mutation 2, mutation 3.. ] (a log of mutations)

  16. Filesystem Verifier File Tree ID → [mutation 1, mutation 2, mutation 3.. ] File Tree ID → [mutation 1, mutation 2, mutation 3.. ] (a log of mutations) Read in rows for a file tree, running 15-20 checks against each

  17. What is the Pattern? Loop over every ‘unit’ Run a sanity check for each Not particularly complex Quantity of checks is high...

  18. Problems we are tackling Examples of Checkers Generic Model for a Checker

  19. Data Model Unit

  20. Data Model Unit → []Check

  21. Data Model Unit → []Check → []Violation

  22. Data Model Unit → []Check → []Violation Partition → []Unit

  23. Data Model Unit → []Check → []Violation Partition → []Unit Run → []Partition

  24. Check Scheduling Split the dataset into partitions

  25. Check Scheduling Split the dataset into partitions For each partition, maintain a cursor

  26. Check Scheduling Split the dataset into partitions For each partition, maintain a cursor Hand out cursors to check runners (Use a distributed worker system)

  27. Check Scheduling RunId: 0 Partition: “1”, Cursor: “a” Partition: “2”, Cursor: “b”

  28. Check Scheduling RunId: 0 Partition: “1”, Cursor: “a” Partition: “2”, Cursor: “b” CheckChunk(Partition, CursorStart) Returns []Violation, CursorEnd

  29. Reporting Shove all Violations into a database. Dashboard graphs: Previous run: num violations per check Current run: num violations per check Current run: cursor progress

  30. Alert the team if nonzero Reporting Shove all Violations into a database. Dashboard graphs: Previous run: num violations per check Current run: num violations per check Current run: cursor progress

  31. Remediation Correction scripts are extremely dangerous! Back-up your data After correction, re-run checks

  32. Checking the Checkers Periodically, pick a unit and corrupt it Make sure the checker detects it

  33. Thanks for stopping by! David Mah mah@dropbox.com

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend