Skip to content

Flaky 01290_max_execution_speed_distributed (TOO_SLOW) #71366

@vdimir

Description

@vdimir

test fails with executeQuery: Code: 160. DB::Exception: Estimated query execution time (11653.719987120001 seconds) is too long. Maximum: 600. Estimated rows to process: 869678: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_SLOW), usually on s3 run.

My assumption was that it's because of reading from s3 is slower, however, checked profile events, no remote reads:

ProfileEvents

from https://s3.amazonaws.com/clickhouse-test-reports/68682/b5e3df977b3799f2eaaa2590293b0271eeadc073/stateless_tests__debug__s3_storage_.html

{'Query':1,'SelectQuery':1,'InitialQuery':1,'QueriesWithSubqueries':1,'SelectQueriesWithSubqueries':1,'SelectQueriesWithPrimaryKeyUsage':1,'FileOpen':7,'ReadBufferFromFileDescriptorRead':9,'ReadBufferFromFileDescriptorReadBytes':76724,'ReadCompressedBytes':76468,'CompressedReadBufferBlocks':4,'CompressedReadBufferBytes':138163,'OpenedFileCacheHits':2,'OpenedFileCacheMisses':7,'OpenedFileCacheMicroseconds':16,'IOBufferAllocs':13,'IOBufferAllocBytes':215898,'FunctionExecute':9,'MarkCacheHits':5,'MarkCacheMisses':1,'CreatedReadBufferOrdinary':9,'DiskReadElapsedMicroseconds':37,'NetworkReceiveElapsedMicroseconds':15,'NetworkSendElapsedMicroseconds':436,'NetworkSendBytes':14859,'GlobalThreadPoolJobs':14,'LocalThreadPoolExpansions':13,'LocalThreadPoolShrinks':13,'LocalThreadPoolThreadCreationMicroseconds':46,'LocalThreadPoolJobs':20,'LocalReadThrottlerBytes':76468,'SelectedParts':12,'SelectedPartsTotal':12,'SelectedRanges':12,'SelectedMarks':121,'SelectedMarksTotal':121,'RowsReadByPrewhereReaders':200,'WaitMarksLoadMicroseconds':432085,'BackgroundLoadingMarksTasks':6,'LoadedMarksCount':9,'LoadedMarksMemoryBytes':144,'ContextLock':54,'RWLockAcquiredReadLocks':1,'PartsLockHoldMicroseconds':21,'RealTimeMicroseconds':6039066,'UserTimeMicroseconds':7266,'SystemTimeMicroseconds':3840,'SoftPageFaults':3,'OSCPUWaitMicroseconds':1869,'OSCPUVirtualTimeMicroseconds':11065,'OSWriteBytes':28672,'OSReadChars':75776,'OSWriteChars':35840,'QueryProfilerRuns':7,'CachedReadBufferReadFromCacheHits':4,'CachedReadBufferReadFromCacheMicroseconds':32,'CachedReadBufferReadFromCacheBytes':76468,'CachedReadBufferCreateBufferMicroseconds':76,'FilesystemCacheGetOrSetMicroseconds':20,'FileSegmentWaitMicroseconds':905834,'FileSegmentUseMicroseconds':1,'FileSegmentFailToIncreasePriority':4,'FilesystemCacheHoldFileSegments':4,'FilesystemCacheUnusedHoldFileSegments':1,'RemoteFSPrefetches':2,'RemoteFSPrefetchedReads':2,'RemoteFSPrefetchedBytes':73436,'RemoteFSUnprefetchedReads':3,'RemoteFSUnprefetchedBytes':3032,'RemoteFSBuffers':4,'ThreadpoolReaderTaskMicroseconds':906099,'ThreadpoolReaderReadBytes':76468,'ThreadpoolReaderSubmit':7,'ThreadpoolReaderSubmitReadSynchronously':1,'ThreadpoolReaderSubmitReadSynchronouslyBytes':37526,'ThreadpoolReaderSubmitReadSynchronouslyMicroseconds':24,'ThreadpoolReaderSubmitLookupInCacheMicroseconds':27,'FileSegmentWaitReadBufferMicroseconds':905949,'AsynchronousRemoteReadWaitMicroseconds':611196,'SynchronousRemoteReadWaitMicroseconds':294975,'LogTrace':76,'LogDebug':5,'InterfaceNativeSendBytes':14859,'ConcurrencyControlSlotsGranted':1,'ConcurrencyControlSlotsDelayed':15,'ConcurrencyControlSlotsAcquired':1,'ConcurrencyControlQueriesDelayed':1}

cidb

Details
prnum sha dur check_start_time ago check_name test_name report_url
71286 ffc88fd 2.84 2024-10-31 02:13:52 1 day and 10 hours Stateless tests (release, old analyzer, s3, DatabaseReplicated) [1/2] 01290_max_execution_speed_distributed https://s3.amazonaws.com/clickhouse-test-reports/71286/ffc88fd8a32fc183605d409c1028d865adca6cef/stateless_tests__release__old_analyzer__s3__databasereplicated__[1_2].html
62125 e3890a9 13.55 2024-10-30 14:00:08 1 day and 22 hours Stateless tests (debug, s3 storage) 01290_max_execution_speed_distributed https://s3.amazonaws.com/clickhouse-test-reports/62125/e3890a9de103a560a9804dc4b1fb63c0eb68a569/stateless_tests__debug__s3_storage_.html
0 06d2c63 4.59 2024-10-30 11:51:51 2 days Stateless tests (debug, s3 storage) 01290_max_execution_speed_distributed https://s3.amazonaws.com/clickhouse-test-reports/0/06d2c63de03f9829b7ad8942c1bab725d689a59a/stateless_tests__debug__s3_storage_.html
71224 d9f427d 0.32 2024-10-30 01:29:29 2 days and 10 hours Stateless tests (debug, s3 storage) 01290_max_execution_speed_distributed https://s3.amazonaws.com/clickhouse-test-reports/71224/d9f427deba385b6ab708c8e57cb6caad14cfdfc4/stateless_tests__debug__s3_storage_.html
68631 43c2f38 0.27 2024-10-29 16:46:19 2 days and 19 hours Fast test 01290_max_execution_speed_distributed https://s3.amazonaws.com/clickhouse-test-reports/68631/43c2f38524f29e57adf8d7f8828d6403c9d380c7/fast_test.html
68682 b5e3df9 4.83 2024-10-29 15:07:52 2 days and 21 hours Stateless tests (debug, s3 storage) 01290_max_execution_speed_distributed https://s3.amazonaws.com/clickhouse-test-reports/68682/b5e3df977b3799f2eaaa2590293b0271eeadc073/stateless_tests__debug__s3_storage_.html
0 ca2fcfd 3.58 2024-10-29 12:40:36 2 days and 23 hours Stateless tests (debug, s3 storage) 01290_max_execution_speed_distributed https://s3.amazonaws.com/clickhouse-test-reports/0/ca2fcfd23047300347e63d15917ec6405b8db241/stateless_tests__debug__s3_storage_.html
71123 9eb6834 4.76 2024-10-28 13:12:42 3 days and 23 hours Stateless tests (debug, s3 storage) 01290_max_execution_speed_distributed https://s3.amazonaws.com/clickhouse-test-reports/71123/9eb683494670c75932d45926eb553e4d46c947cf/stateless_tests__debug__s3_storage_.html
67733 aae3cd8 3.76 2024-10-28 11:25:43 4 days Stateless tests (debug, s3 storage) 01290_max_execution_speed_distributed https://s3.amazonaws.com/clickhouse-test-reports/67733/aae3cd8ad72b6781c34b31b5060cf0aed02deead/stateless_tests__debug__s3_storage_.html
70820 d51ed8e 5.74 2024-10-26 00:58:58 6 days and 11 hours Stateless tests (aarch64) 01290_max_execution_speed_distributed https://s3.amazonaws.com/clickhouse-test-reports/70820/d51ed8e3700d4768bdae2c1e2711838107e6e754/stateless_tests__aarch64_.html
0 1a1a920 4.88 2024-10-25 21:46:01 6 days and 14 hours Stateless tests (debug, s3 storage) 01290_max_execution_speed_distributed https://s3.amazonaws.com/clickhouse-test-reports/0/1a1a920992a6cbc33ea3dc20e678b62a195b6753/stateless_tests__debug__s3_storage_.html
70810 feb1fbb 1.52 2024-10-25 18:58:45 6 days and 17 hours Stateless tests (tsan, s3 storage) [2/3] 01290_max_execution_speed_distributed https://s3.amazonaws.com/clickhouse-test-reports/70810/feb1fbbacb9631c657b0885c09ffc21f5e0645f1/stateless_tests__tsan__s3_storage__[2_3].html
64847 82a57e3 3.39 2024-10-25 17:07:49 6 days and 19 hours Stateless tests (debug, s3 storage) 01290_max_execution_speed_distributed https://s3.amazonaws.com/clickhouse-test-reports/64847/82a57e36678d7c1cd8b0897706e2158848f9a0e8/stateless_tests__debug__s3_storage_.html

Lets first add a bit more info to error message: #71365

Metadata

Metadata

Assignees

Labels

flaky testflaky test found by CItestingSpecial issue with list of bugs found by CI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions