vinyl: log reads that take too long
If read of a single statement from vinyl takes more than the value of box.cfg.too_long_threshold, the request will be logged: 512/1: select([1], EQ) => REPLACE([100001, 1], lsn=200006) took too long: 0.626 sec This is useful for debugging. While we are at it, let's also remove 'timeout' from the vinyl engine constructor arguments and set it with box_set_vinyl_timeout() on box initialization instead, similarly to vinyl_max_tuple_size. Closes #2871
Showing
- src/box/box.cc 6 additions, 1 deletionsrc/box/box.cc
- src/box/vinyl.c 24 additions, 10 deletionssrc/box/vinyl.c
- src/box/vinyl.h 10 additions, 5 deletionssrc/box/vinyl.h
- src/box/vy_read_iterator.c 11 additions, 3 deletionssrc/box/vy_read_iterator.c
- src/box/vy_read_iterator.h 6 additions, 1 deletionsrc/box/vy_read_iterator.h
- test/vinyl/errinj.result 34 additions, 0 deletionstest/vinyl/errinj.result
- test/vinyl/errinj.test.lua 12 additions, 0 deletionstest/vinyl/errinj.test.lua
Loading
Please register or sign in to comment