vanilladb / vanillacore

The core engine of VanillaDB
Apache License 2.0
196 stars 41 forks source link

Add a test case for concurrent buffer swapping #60

Closed SLMT closed 3 years ago

SLMT commented 3 years ago

As the title.

It is easy to break BufferPoolMgr when optimizing it. One of common bugs is getting a buffer with a wrong block when many threads are swapping buffers. This test case should be enough to detect the bug.

SLMT commented 3 years ago

Thanks!