-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
Manticoresearch crashes when count distinct and group by is used #1402
Labels
Comments
Don't forget to pre-download the archive with the configuration files and the mysql dump - archive.zip MRE
Error:
Logs:
|
should be fixed at 490f204 |
sanikolaev
added
rel::6.3.0
Released in 6.3.0
and removed
rel::upcoming
Upcoming release
labels
May 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Manticore Search crashes while executing the below query.
( It should be noted I encountered this crash while trying to debug another issue where using count distinct with group by is returning correct results for only the first row and every subsequent row is just 1 )
To Reproduce
A docker compose environment as well as sample data is included attached to this issue
Untar the attached tar which contains 4 files
manticore_crash_env.tar.gz
The
setup_env.bash
will start the compose env and run the query, you may also just inspect it and run the command manuallySteps to reproduce the behavior:
(only a subset of these may be required to reproduce the behaviour but this a stripped down version of my existing workflow that seems to trigger it reliably)
SELECT id, COUNT(DISTINCT some_data) from idx_table_rt GROUP BY id;
The query
SELECT fkey, COUNT(DISTINCT some_data) from idx_table_rt GROUP BY fkey;
does not seem to cause the same crash.This query however does
SELECT fkey AS fkey, count(DISTINCT some_data) AS some_data_distinct_count FROM idx_table_rt GROUP BY fkey ORDER BY some_data_distinct_count DESC OPTION max_matches=1000, distinct_precision_threshold=0;
Expected behavior
I expect manticore to return the result of the query, and if the crash is related to a configuration error or resource error emit an error but not crash and drop the connection.
Describe the environment:
Messages from log files:
Docker emits the following log from manticore when this occurs
and the process is then rebooted by docker
The client returns
Additional context
indextool --check
returns ok for each of the rt tables but prints the following warningThe text was updated successfully, but these errors were encountered: