prestodb / presto

The official home of the Presto distributed SQL query engine for big data
http://prestodb.io
Apache License 2.0
16.06k stars 5.38k forks source link

Test TestHivePushdownDistributedQueries testRunawayRegexAnalyzerTimeout fails with a timeout #20411

Closed swapsmagic closed 8 months ago

swapsmagic commented 1 year ago

https://github.com/prestodb/presto/actions/runs/5685313042/job/15409924223?pr=20409

Error: Failures: Error: TestHivePushdownDistributedQueries.testRunawayRegexAnalyzerTimeout » Test The exception was thrown with the wrong message: expected "Regexp matching interrupted" but got "The query optimizer exceeded the timeout of 1.00s."

ClarenceThreepwood commented 8 months ago

This is a straightforward race condition. The test is supposed to initiate an indefinite regular expression matching which then gets interrupted and is expected to produce the error "Regexp matching interrupted". Occasionally, since the regular expression matching has not initiated yet when the timeout/interruption happens, the other error message pops up.

Two possible solutions - increase timeout to minimize chances of this error happening, or tolerate both error states