Fix 02050_client_profile_events flakiness#32493
Conversation
2dd7872 to
e853b88
Compare
|
Some internal github actions issue: Will do a rebase. |
e853b88 to
f6971ff
Compare
f6971ff to
3da2e1d
Compare
Some internal issue? But let's run CI one more time (just in case). |
3da2e1d to
cf14e4a
Compare
|
Now better:
Hm, some issue in Details
|
…f failure
Sometimes [1] the test fails like this:
2021-12-10 03:41:19 --- /usr/share/clickhouse-test/queries/0_stateless/02050_client_profile_events.reference 2021-12-10 03:23:43.000000000 -0500
2021-12-10 03:41:19 +++ /tmp/clickhouse-test/0_stateless/02050_client_profile_events.617.stdout 2021-12-10 03:41:19.509611205 -0500
2021-12-10 03:41:19 @@ -1,4 +1,3 @@
2021-12-10 03:41:19 0
2021-12-10 03:41:19 -SelectedRows: 131010 (increment)
2021-12-10 03:41:19 OK
2021-12-10 03:41:19 OK
2021-12-10 03:41:19
2021-12-10 03:41:19
2021-12-10 03:41:19 Database: test_73d5o0
[1]: https://s3.amazonaws.com/clickhouse-test-reports/32493/703213a6444f8014e3324df4b6e44d03fa351294/stateless_tests_flaky_check__address__actions_.html
And I did not find anything strange in server logs (and there was 0
exceptions).
v2: drop std::move and add copy ctor for ProfileEvents::Counter::Snapshot v2: remove std::move
That way with --profile-events-delay-ms=-1 you will always get totals.
Plus, this will fix periodic failures, that can be reproduced by
limitting CPU (5% is enough in my setup), i.e.:
$ systemd-run --collect --unit ch -p CPUQuota=5% --user clickhouse-server
$ while clickhouse-client --print-profile-events --profile-events-delay-ms=-1 -q 'select * from numbers (1e5) format Null' |& tee /dev/stderr | fgrep 'SelectedRows: 131010 (increment)'; do :; done
And as a bonus it will make 02050_client_profile_events deterministic.
cf14e4a to
1d25ec3
Compare
|
@azat This pull request slows down short queries. |
Changelog:
CI: https://s3.amazonaws.com/clickhouse-test-reports/32303/24751e7d45d94541be854c86ce46d65c2e0f66da/stateless_tests__thread__actions_.html
Changelog category (leave one):
Cc: @novikd