Details
-
Bug
-
Resolution: Done
-
Major
-
4.5.0
-
None
-
Untriaged
-
No
Description
Execute this file through cbq:
\set -timeout "10ms";
create primary index on default;
select * from default limit 2;
Command though go_cbq:
./go_cbq -engine="http://localhost:8093" -s="\source /tmp/test"
Result:
./go_cbq -engine="http://localhost:8093" -s="\source /tmp/test"
Connected to : http://localhost:8093/. Type Ctrl-D to exit.
\set -timeout "10ms";
create primary index on default;
{
"requestID": "f4157c80-07b7-4baf-b731-f76b7a8dfda6",
"signature": null,
"results": [
],
"status": "timeout",
"metrics":
}
select * from default limit 2;
{
"requestID": "c19fb275-cc86-492a-a123-e5457df775e7",
"errors": [
],
"status": "fatal",
"metrics":
}
Above result is correct.
Then execute the script again, we get the following result:
[root@localhost bin]# ./go_cbq -engine="http://localhost:8093" -s="\source /tmp/test"
Connected to : http://localhost:8093/. Type Ctrl-D to exit.
\set -timeout "10ms";
create primary index on default;
{
"requestID": "86bca593-d8dc-4eb1-ae33-aa6a9e6807c6",
"signature": null,
"results": [
],
"errors": [
],
"status": "errors",
"metrics":
}
select * from default limit 2;
{
"requestID": "054bce7d-e266-46e7-9c19-95b92c6846e7",
"signature":
,
"results": [
],
"status": "timeout",
"metrics":
}
Above result is wrong.
Checked UI, the primary index did get created.
Same scenario applies when we have the following script:
\set -timeout "10ms";
drop primary index on default;
select * from default limit 2;