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.
When client sees connection closed,
finish_bulk_load
inrocksdb_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 forfinish_bulk_load
ends.