forked from apache/doris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[enhance](session)check invalid value when set parallel instance vari…
…ables (apache#28141) in some case, if set incorrectly, will be cause BE core dump 10:18:19 *** SIGFPE integer divide by zero (@0x564853c204c8) received by PID 2132555 int max_scanners = config::doris_scanner_thread_pool_thread_num / state->query_parallel_instance_num();
- Loading branch information
1 parent
bde9dc9
commit 98d0c72
Showing
4 changed files
with
58 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
regression-test/suites/query_p0/session_variable/test_invalid_session.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
suite("test_invalid_session") { | ||
try { | ||
sql "set parallel_pipeline_task_num = -1;" | ||
} catch (Exception ex) { | ||
assert("${ex}".contains("parallel_pipeline_task_num value should greater than or equal 0, you set value is: -1")) | ||
} | ||
|
||
try { | ||
sql "set parallel_fragment_exec_instance_num = 0;" | ||
} catch (Exception ex) { | ||
assert("${ex}".contains("parallel_fragment_exec_instance_num value should greater than or equal 1, you set value is: 0")) | ||
} | ||
} |