facebook / mysql-5.6

Facebook's branch of the Oracle MySQL database. This includes MyRocks.
http://myrocks.io
Other
2.48k stars 712 forks source link

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

Open rockeet opened 1 year ago

rockeet commented 1 year ago

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.