tikv / fail-rs

Fail points for rust
Apache License 2.0
338 stars 40 forks source link

Support dependency wait #47

Open Connor1996 opened 4 years ago

Connor1996 commented 4 years ago

Is your feature request related to a problem? Please describe.

Make fail-point support dependencies (one fail-point wait for another before proceed) we can refer to the implementation of rocksdb syncpoint https://github.com/facebook/rocksdb/blob/e9e0101ca46f00e8a456e69912a913d907be56fc/test_util/sync_point.h

Describe the solution you'd like

Support writting like this fail::cfg("point_A", "wait(point_B)")

Additional context

part of #https://github.com/tikv/rust-rocksdb/issues/361

yiwu-arbug commented 4 years ago

What's use case of wait_local?

Connor1996 commented 4 years ago

No use case for now @yiwu-arbug

BusyJay commented 4 years ago

I think with #50, this can be implemented on the application side easily.