-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Bug Report: Panic in Concatenate
Engine
#15434
Comments
Looking at the code in the concatenate engine, the panic is happening because we end up calling The callback function is called in 2 places. The first one is only after we populate the I tried reproducing the problem while adding more log lines to see what result sets we are receiving to debug the problem, but I couldn't find a failing run with the logs added in over 1500 runs. So, I started speculating on how we could end up in this state of panic, and I can only think of 2 ways -
{
"OperatorType": "Concatenate",
"Inputs": [
{
"OperatorType": "Route",
"Variant": "IN",
"Keyspace": {
"Name": "ks_union",
"Sharded": true
},
"FieldQuery": "select id1 from t1 where 1 != 1",
"Query": "select id1 from t1 where id1 in ::__vals",
"Table": "t1",
"Values": [
"(1, 2, 3, 4, 5, 6, 7, 8)"
],
"Vindex": "hash"
},
{
"OperatorType": "Route",
"Variant": "IN",
"Keyspace": {
"Name": "ks_union",
"Sharded": true
},
"FieldQuery": "select id1 from t1 where 1 != 1",
"Query": "select id1 from t1 where id1 in ::__vals",
"Table": "t1",
"Values": [
"(1, 2, 3, 4, 5, 6, 7, 8)"
],
"Vindex": "hash"
}
]
} Also, in the stack trace its evident that the source of the
Other than trying to reproduce the problem with logs to see the result sets we are receiving, I don't see how to proceed. |
There is another concern with this panic. If we see the stack trace, we can see that the stack doesn't have any sort of panic handling in it. Since we are creating new go routines in |
This part should be fixed in scatter_conn, It is a known issue |
|
Overview of the Issue
This bug was found while investigating the flakiness in
TestUnionAll
.It was noticed that running the following query causes vtgates to panic -
The vtgate logs have -
The vitess version that was deployed for this test - 96e0a62
Reproduction Steps
TestUnionAll
over and over until the panic is witnessedBinary Version
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: