Skip to content

test(core): fix flaky test that tests the stack overflow error (#4139)#6242

Merged
bluestreak01 merged 1 commit intoquestdb:masterfrom
liuguoqingfz:master
Nov 15, 2025
Merged

test(core): fix flaky test that tests the stack overflow error (#4139)#6242
bluestreak01 merged 1 commit intoquestdb:masterfrom
liuguoqingfz:master

Conversation

@liuguoqingfz
Copy link
Copy Markdown
Contributor

This pull request is to solve issue #4139, the original test was expecting error messages contains "stack overflow error", by searching through the entire code base, there's no any Exception class that will produce this kind of error message. Instead, the exception was throw from io.questdb.griffin.engine.functions.regex.RegexpReplaceStrFunctionFactory.RegexpReplaceStrFunction#getStr around line 148. The Throwable e was a stackoverflow exception, but the CairoException that it is throwing doesn't contain any information about "stack overflow error". I don't really want to mess around with the original code base, my goal is just to fix the flaky test. So I change the testStackOverFlowError() assert condition to the same string "regexp_replace failed [position=" in io.questdb.griffin.engine.functions.regex.RegexpReplaceStrFunctionFactory.RegexpReplaceStrFunction#getStr line 148 to match the assertion.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Oct 8, 2025

CLA assistant check
All committers have signed the CLA.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Oct 8, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@bluestreak01 bluestreak01 changed the title test(core) Fixed a flaky test that tests the stack overflow error (#4139) test(core): fix flaky test that tests the stack overflow error (#4139) Nov 15, 2025
@bluestreak01 bluestreak01 merged commit c6ee66e into questdb:master Nov 15, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants