]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
~SleepingBackgroundTask() to wake up the sleeping task (#11036)
authorsdong <siying.d@fb.com>
Wed, 14 Dec 2022 20:06:24 +0000 (12:06 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 14 Dec 2022 20:06:24 +0000 (12:06 -0800)
commit1928902a6f3a33647b3b2a67cd13282f5b1f320f
tree82014eb306bf1338299b36914b0cb5ea0e18aec4
parent6a8920f988f66fdddf8db5f1fdbd2bbec8254b1a
~SleepingBackgroundTask() to wake up the sleeping task (#11036)

Summary:
Right now, in unit tests, when background tests are sleeping using SleepingBackgroundTask, and the test exits with test assertion failure, the process will hang and it might prevent us to see the test failure message in CI runs. Try to wake up the thread so that the test can exit correctly.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/11036

Test Plan: Watch CI succeeds

Reviewed By: riversand963

Differential Revision: D42020489

fbshipit-source-id: 5b8441b18d5f67bbb3ade59a1225a8d3c860c2eb
test_util/testutil.h