-
Notifications
You must be signed in to change notification settings - Fork 638
Port of 0.9.9 patch to main #3147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
a4a2a8e
f8939c0
91af918
48b0ea6
0a45207
d39db15
a7a48ed
b3769a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -709,6 +709,24 @@ | |
| Assert.assertEquals(actualIds, new ArrayList<>(queryIds)); | ||
| } | ||
|
|
||
| @Test(groups = {"integration"}) | ||
| public void testExecutionTimeout() throws Exception{ | ||
| final String query = "SELECT count(), sum(sipHash64(number)) " + | ||
| "FROM numbers(1000000000) " + | ||
| "SETTINGS max_threads = 1;"; | ||
|
|
||
| long startTime = System.currentTimeMillis(); | ||
| int maxExecTime = 4000; | ||
| try (Client client = newClient().serverSetting("max_execution_time", String.valueOf(TimeUnit.MILLISECONDS.toSeconds(maxExecTime))).build(); | ||
| QueryResponse response = client.query(query).get()) { | ||
|
Check warning on line 721 in client-v2/src/test/java/com/clickhouse/client/ClientTests.java
|
||
|
|
||
| } catch (ServerException e) { | ||
| long queryTime = System.currentTimeMillis() - startTime; | ||
| Assert.assertTrue(Math.abs(queryTime - maxExecTime) < 1000); | ||
| Assert.assertEquals(e.getCode(), ServerException.EXECUTION_TIMEOUT); | ||
| } | ||
| } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Timeout test can pass silentlyMedium Severity
Reviewed by Cursor Bugbot for commit b3769a7. Configure here. |
||
|
|
||
| @Test(groups = {"integration"}) | ||
| public void testHostnameWithUnderscore() throws Exception { | ||
|
|
||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.