]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Prevent db_stress failure when io_uring is disabled (#11045)
authoranand76 <anand76@devvm4702.ftw0.facebook.com>
Mon, 19 Dec 2022 19:38:42 +0000 (11:38 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 19 Dec 2022 19:38:42 +0000 (11:38 -0800)
commit692d6be3586fd03ba955f8afe8cdccadf742cc58
tree519df841f9041e2583783157c90b2de9d6c8c481
parentc3f720c60db59c27486d8f18e094f9d1eb3c33cf
Prevent db_stress failure when io_uring is disabled (#11045)

Summary:
The IO uring usage is disabled in RocksDB by default and, as a result, PosixRandomAccessFile::ReadAsync returns a NotSupported() status. This was causing stress test failures with MultiGet and async_io combination. Fix it by relying on redirection of ReadAsync to Read when default Env is used in db_stress.

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

Reviewed By: akankshamahajan15

Differential Revision: D42136213

Pulled By: anand1976

fbshipit-source-id: fc7904d8ece74d7e8f2e1a34c3d70bd5774fb45f
db_stress_tool/db_stress_tool.cc