Repository navigation
Conversation
|
@vdimir can you help remove the |
|
The test changed in this PR is flaky. Investigating why
Not sure the code is wrong or test. |
|
Can't it depend on number of threads and thus streams we read from? |
|
I tried to change the test to use:
Still same failures and flaky across different CI runs! Digging more, it seems like a pattern when there are multiple PREWHERE conditions like: When there is a single prewhere condition like Meanwhile another idea I am trying is - adding a set temporarily
to see if same granule is being counted in skipped from both the places (although this might be too much to do for a metrics). If this change makes the test deterministic, we can decide to keep or remove this code. For now, adding in the change to test because the test always passes locally but always fails in some of the CI runs. The difference could be because 1) I am using macOS and running clickhouse via an IDE 2) CI uses runner while I am just running the sh file directly. Alternatively, if test fails one idea could be to accept changes and make test less strict. Maybe its okay to have a little variation in the number of granules skipped across environments and configs(?) [UPDATE after CI run] Still passes in some and fails in some, savings some failure links . ( amd tsan S3 storage, amd debug distributed plan s3 storage, amd debug Async Insert S3 Storage, amd binary old analyzer S3 storage Database Replicated)
Passes here (arm_binary) and a few other places. Not sure if there is something to do with these storage where failure occurs or AMD or are these just coincidence. It does seem like the test consistently fails on some of these runs. |
|
Hi @vdimir Another observation from grepping the failure logs (as suggested in slack): The difference seems to be that the lines tagged DiskLocal are missing. And thats because, all the failures are cases where the data is on S3. It seems to me like the S3 codeflow for writes is different and that causes at least a few of the flakiness cases. I will checkin some experiment code today to see if that helps. Converting PR to draft for the time being.. Query relating to logs below:
The server logs from successful test run has these lines:
One of the failed ones:
|
|
Dear @shiv4289, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message. |
1 similar comment
|
Dear @shiv4289, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message. |
|
Dear @shiv4289, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message. |
1 similar comment
|
Dear @shiv4289, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message. |
Fixes #42045
Adds more Profile Events :
Previously, following profile events were already added by #64198
Changelog category (leave one):
Example use: