Multithreading reliability, force single thread for test relying on internal behavior

Former-commit-id: 033761c5f97fc1d1823a031b34467ac1df5588f3
This commit is contained in:
John Sully 2020-04-15 20:52:25 -04:00
parent 9b25f954d0
commit 24223ed818

View File

@ -258,7 +258,9 @@ tags {"aof"} {
}
}
start_server {overrides {appendonly {yes} appendfilename {appendonly.aof} appendfsync always}} {
# Because of how this test works its inherently unreliable with multithreading, so force threads 1
# No real client should rely on this undocumented behavior
start_server {overrides {appendonly {yes} appendfilename {appendonly.aof} appendfsync always server-threads 1}} {
test {AOF fsync always barrier issue} {
set rd [redis_deferring_client]
# Set a sleep when aof is flushed, so that we have a chance to look