rocksdb/port/win
Andrew Kryczka b00761eea6 Fix block cache ID uniqueness for Windows builds (#5844)
Summary:
Since we do not evict a file's blocks from block cache before that file
is deleted, we require a file's cache ID prefix is both unique and
non-reusable. However, the Windows functionality we were relying on only
guaranteed uniqueness. That meant a newly created file could be assigned
the same cache ID prefix as a deleted file. If the newly created file
had block offsets matching the deleted file, full cache keys could be
exactly the same, resulting in obsolete data blocks returned from cache
when trying to read from the new file.

We noticed this when running on FAT32 where compaction was writing out
of order keys due to reading obsolete blocks from its input files. The
functionality is documented as behaving the same on NTFS, although I
wasn't able to repro it there.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5844

Test Plan:
we had a reliable repro of out-of-order keys on FAT32 that
was fixed by this change

Differential Revision: D17752442

fbshipit-source-id: 95d983f9196cf415f269e19293b97341edbf7e00
2019-10-11 18:19:31 -07:00
..
env_default.cc Move some memory related files from util/ to memory/ (#5382) 2019-05-30 17:44:09 -07:00
env_win.cc Apply formatter to recent 200+ commits. (#5830) 2019-09-20 12:04:26 -07:00
env_win.h Format env_win coding style by google c++ style guide (#5096) 2019-03-27 16:38:20 -07:00
io_win.cc Fix block cache ID uniqueness for Windows builds (#5844) 2019-10-11 18:19:31 -07:00
io_win.h Support for single-primary, multi-secondary instances (#4899) 2019-03-26 16:45:31 -07:00
port_win.cc Move some logging related files to logging/ (#5387) 2019-05-31 17:23:59 -07:00
port_win.h Use delete to disable automatic generated methods. (#5009) 2019-09-11 18:09:00 -07:00
win_jemalloc.cc Remove PATENTS text from a few straggler files (#5326) 2019-05-21 16:22:35 -07:00
win_logger.cc Windows cumulative patch 2018-03-06 11:57:43 -08:00
win_logger.h Windows cumulative patch 2018-03-06 11:57:43 -08:00
win_thread.cc Update all unique/shared_ptr instances to be qualified with namespace std (#4638) 2018-11-09 11:19:58 -08:00
win_thread.h Fix a race condition in WindowsThread (port::Thread) 2017-12-07 13:42:53 -08:00
xpress_win.cc Enable cacheline_aligned_alloc() to allocate from jemalloc if enabled. 2017-10-27 13:27:12 -07:00
xpress_win.h Change RocksDB License 2017-07-15 16:11:23 -07:00