Merge pull request #51120 from azat/tests/throttle

Fix 02703_max_local_write_bandwidth flakiness
This commit is contained in:
Alexey Milovidov 2023-06-17 16:54:11 +03:00 committed by GitHub
commit b11e148fa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -18,8 +18,8 @@ $CLICKHOUSE_CLIENT -nm -q "
SELECT
query_duration_ms >= 7e3,
ProfileEvents['WriteBufferFromFileDescriptorWriteBytes'] > 8e6,
ProfileEvents['LocalWriteThrottlerBytes'] > 8e6,
ProfileEvents['LocalWriteThrottlerSleepMicroseconds'] > 7e6*0.5
ProfileEvents['LocalWriteThrottlerBytes'] > 8e6
/* LocalWriteThrottlerSleepMicroseconds is too unreliable in debug build, but query_duration_ms is enough */
FROM system.query_log
WHERE current_database = '$CLICKHOUSE_DATABASE' AND query_id = '$query_id' AND type != 'QueryStart'
"