test: fix long_row_timeout.test.lua failure in parallel mode
The test used to write big rows (20 mb in size), so when run in parallel mode, it put high load on the disk and processor, which made appliers time out multiple times during read, and caused the test to fail occasionally. So, instead of writing huge rows in test, introduce a new error injection restricting sio from reading more than a couple of bytes per request. This ensures that the test is still relevant and makes it a lot more lightweight. Closes #4062
Showing
- src/lib/core/errinj.h 1 addition, 0 deletionssrc/lib/core/errinj.h
- src/lib/core/sio.c 5 additions, 0 deletionssrc/lib/core/sio.c
- test/box/errinj.result 3 additions, 1 deletiontest/box/errinj.result
- test/replication/long_row_timeout.result 5 additions, 13 deletionstest/replication/long_row_timeout.result
- test/replication/long_row_timeout.test.lua 5 additions, 8 deletionstest/replication/long_row_timeout.test.lua
- test/replication/suite.ini 1 addition, 1 deletiontest/replication/suite.ini
Loading
Please register or sign in to comment