Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

mysql-test/suite/rocksdb/t/add_index_inplace.test: fix race condition for finish_bulk_load#1252

Open
rockeet wants to merge 1 commit into
facebook:fb-mysql-8.0.28from
rockeet:fix.add_index_inplace.test
Open

mysql-test/suite/rocksdb/t/add_index_inplace.test: fix race condition for finish_bulk_load#1252
rockeet wants to merge 1 commit into
facebook:fb-mysql-8.0.28from
rockeet:fix.add_index_inplace.test

Conversation

@rockeet

@rockeet rockeet commented Nov 1, 2022

Copy link
Copy Markdown
Contributor

When client sees connection closed, finish_bulk_load in rocksdb_close_connection may still inprogress, the new connection created instantly following would racing with finish_bulk_load.

I can not fix the myrocks code for this race condition, but fix the test. set rocksdb_bulk_load will force calling finish_bulk_load and wait for finish_bulk_load ends.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants