-
Notifications
You must be signed in to change notification settings - Fork 104
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
fix(tidb): fix script integrationtest.sh #2519
fix(tidb): fix script integrationtest.sh #2519
Conversation
purelind
commented
Oct 16, 2023
- Correct start pd cmd params.
- Specify using store tikv for testing.
Signed-off-by: purelind <purelind@gmail.com>
The changes look good and do not introduce any obvious issues. However, it is not clear why the TiKV path is set to the PD address. It would be better to set the TiKV path to the address of the TiKV server that is being used for testing. Suggestion:
|
/hold |
Currently, running with store tikv will result in the following errors. ERRO[0663] 8 tests failed
ERRO[0663] run test [executor/admin] err: sql:admin checksum table cache_admin_table_with_index_test;: failed to run query
"admin checksum table cache_admin_table_with_index_test;"
around line 66,
we need(172):
admin checksum table cache_admin_table_with_index_test;
Db_name Table_name Checksum_crc64_xor Total_kvs Total_bytes
executor__admin cache_admin_table_with_index_test 0 2 2
but got(172):
admin checksum table cache_admin_table_with_index_test;
Db_name Table_name Checksum_crc64_xor Total_kvs Total_bytes
executor__admin cache_admin_table_with_index_test 0 0 0
ERRO[0663] run test [executor/executor] err: sql:change pump to node_state ='paused' for node_id 'pump1';: failed to run query
"change pump to node_state ='paused' for node_id 'pump1';"
around line 693,
we need(132):
change pump to node_state ='paused' for node_id 'pump1';
Error 1105 (HY000): URL scheme must be http, https, unix, or unixs:
change
but got(132):
change pump to node_state ='paused' for node_id 'pump1';
Error 1105 (HY000): node pump, id pump1 from etcd 127.0.0.1:2379 not found
ERRO[0663] run test [expression/builtin] err: sql:select * from tb5 where cast(a as unsigned int)=0;: failed to run query
"select * from tb5 where cast(a as unsigned int)=0;"
around line 280,
we need(156):
select * from tb5 where cast(a as unsigned int)=0;
a b
Level Code Message
Warning 1690 constant 1.844674407370955e+20 overflows bigint
select * from tb5 whe
but got(156):
select * from tb5 where cast(a as unsigned int)=0;
a b
Level Code Message
Warning 1690 evaluation failed: constant 184467440737095500000 overflows LongLong
ERRO[0663] run test [expression/charset_and_collation] err: sql:admin recover index t a;: run "admin recover index t a;" at line 359 err Error 1105 (HY000): [components/tidb_query_executors/src/table_scan_executor.rs:425]: Data is corrupted, missing data for NOT NULL column (offset = 0)
ERRO[0663] run test [expression/issues] err: sql:select * from t where field('A', a collate utf8mb4_general_ci, b) > 1;: failed to run query
"select * from t where field('A', a collate utf8mb4_general_ci, b) > 1;"
around line 1445,
we need(79):
select * from t where field('A', a collate utf8mb4_general_ci, b) > 1;
a b
sele
but got(79):
select * from t where field('A', a collate utf8mb4_general_ci, b) > 1;
a b
a A
ERRO[0663] run test [planner/cascades/integration] err: sql:select /*+ HASH_AGG() */ a, count(distinct a) from t;: failed to run query
"select /*+ HASH_AGG() */ a, count(distinct a) from t;"
around line 135,
we need(78):
select /*+ HASH_AGG() */ a, count(distinct a) from t;
a count(distinct a)
1 2
but got(78):
select /*+ HASH_AGG() */ a, count(distinct a) from t;
a count(distinct a)
2 2
ERRO[0663] run test [planner/core/plan_cache] err: sql:select * from IDT_20290 where col2 * 049015787697063065230692384394107598316198958.1850509 >= 659971401668884663953087553591534913868320924.5040396 and col2 = 869042976700631943559871054704914143535627349.9659934;: failed to run query
"select * from IDT_20290 where col2 * 049015787697063065230692384394107598316198958.1850509 >= 659971401668884663953087553591534913868320924.5040396 and col2 = 869042976700631943559871054704914143535627349.9659934;"
around line 209,
we need(263):
select * from IDT_20290 where col2 * 049015787697063065230692384394107598316198958.1850509 >= 659971401668884663953087553591534913868320924.5040396 and col2 = 869042976700631943559871054704914143535627349.9659934;
Error 1690 (22003): DECIMAL value is out of range
but got(263):
select * from IDT_20290 where col2 * 049015787697063065230692384394107598316198958.1850509 >= 659971401668884663953087553591534913868320924.5040396 and col2 = 869042976700631943559871054704914143535627349.9659934;
Error 1690 (22003): value is out of range in ''
ERRO[0663] run test [session/vars] err: sql:SELECT variable_value FROM mysql.tidb WHERE variable_name = 'tikv_gc_enable';: failed to run query
"SELECT variable_value FROM mysql.tidb WHERE variable_name = 'tikv_gc_enable';"
around line 3,
we need(98):
SELECT variable_value FROM mysql.tidb WHERE variable_name = 'tikv_gc_enable';
variable_value
SET G
but got(98):
SELECT variable_value FROM mysql.tidb WHERE variable_name = 'tikv_gc_enable';
variable_value
true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pingcap/tidb#47697 fixed all problems for real TiKV, I think this PR could merge now.
Signed-off-by: purelind <purelind@gmail.com>
Signed-off-by: purelind <purelind@gmail.com>
Review of "fix(tidb): fix script integrationtest.sh"SummaryThis pull request makes two changes to the
Potential ProblemsThe changes in this pull request appear to be straightforward and limited in scope, so there are no major issues that jump out. However, there are a few minor things to consider:
Suggestions
Overall, the changes in this pull request seem reasonable and well-contained, so I would recommend approving it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[LGTM Timeline notifier]Timeline:
|
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: Defined2014 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |