fail-rs icon indicating copy to clipboard operation
fail-rs copied to clipboard

Support dependency wait

Open Connor1996 opened this issue 6 years ago • 3 comments

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)")

  • wait indicates pause on point_A until point_B is passed.
  • wait_local indicates point_A is enabled when point_A and point_B are processed on same thread. And it will also pause on point_A until point_B is passed.

Additional context

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

Connor1996 avatar Nov 25 '19 08:11 Connor1996

What's use case of wait_local?

yiwu-arbug avatar Nov 25 '19 20:11 yiwu-arbug

No use case for now @yiwu-arbug

Connor1996 avatar Nov 26 '19 02:11 Connor1996

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

BusyJay avatar Mar 27 '20 04:03 BusyJay