mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-17 17:27:57 +00:00
Test error diffs.
This commit is contained in:
4
t/pt-upgrade/samples/005/error_on_both_hosts.log
Normal file
4
t/pt-upgrade/samples/005/error_on_both_hosts.log
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# User@Host: root[root] @ localhost []
|
||||||
|
# Query_time: 1 Lock_time: 0 Rows_sent: 7 Rows_examined: 7
|
||||||
|
use test;
|
||||||
|
select nonexistent_col from test.t;
|
34
t/pt-upgrade/samples/005/error_on_both_hosts.txt
Normal file
34
t/pt-upgrade/samples/005/error_on_both_hosts.txt
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
########################################################################
|
||||||
|
# Query class 0F88A9418F511C18
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
Reporting class because it has SQL errors, but hasn't been reported yet.
|
||||||
|
|
||||||
|
Total queries 1
|
||||||
|
Unique queries 1
|
||||||
|
Discarded queries 0
|
||||||
|
|
||||||
|
select nonexistent_col from test.t
|
||||||
|
|
||||||
|
##
|
||||||
|
## SQL errors: 1
|
||||||
|
##
|
||||||
|
|
||||||
|
-- 1.
|
||||||
|
|
||||||
|
On both hosts:
|
||||||
|
|
||||||
|
DBD::mysql::st execute failed: Unknown column 'nonexistent_col' in 'field list' [for Statement "select nonexistent_col from test.t"] at /Users/daniel/p/pt-upgrade-2.2/bin/pt-upgrade line 5327, <> line 1.
|
||||||
|
|
||||||
|
select nonexistent_col from test.t
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
# Stats
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
failed_queries 1
|
||||||
|
queries_filtered 0
|
||||||
|
queries_no_diffs 0
|
||||||
|
queries_read 1
|
||||||
|
queries_with_diffs 0
|
||||||
|
queries_with_errors 0
|
4
t/pt-upgrade/samples/005/error_on_host1.log
Normal file
4
t/pt-upgrade/samples/005/error_on_host1.log
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# User@Host: root[root] @ localhost []
|
||||||
|
# Query_time: 1 Lock_time: 0 Rows_sent: 7 Rows_examined: 7
|
||||||
|
use test;
|
||||||
|
select host2_col from test.t;
|
36
t/pt-upgrade/samples/005/error_on_host1.txt
Normal file
36
t/pt-upgrade/samples/005/error_on_host1.txt
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
########################################################################
|
||||||
|
# Query class 883A4BC43021922E
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
Reporting class because it has diffs, but hasn't been reported yet.
|
||||||
|
|
||||||
|
Total queries 1
|
||||||
|
Unique queries 1
|
||||||
|
Discarded queries 0
|
||||||
|
|
||||||
|
select host?_col from test.t
|
||||||
|
|
||||||
|
##
|
||||||
|
## Query errors diffs: 1
|
||||||
|
##
|
||||||
|
|
||||||
|
-- 1.
|
||||||
|
|
||||||
|
DBD::mysql::st execute failed: Unknown column 'host2_col' in 'field list' [for Statement "select host2_col from test.t"] at /Users/daniel/p/pt-upgrade-2.2/bin/pt-upgrade line 5327, <> line 1.
|
||||||
|
|
||||||
|
vs.
|
||||||
|
|
||||||
|
No error
|
||||||
|
|
||||||
|
select host2_col from test.t
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
# Stats
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
failed_queries 0
|
||||||
|
queries_filtered 0
|
||||||
|
queries_no_diffs 0
|
||||||
|
queries_read 1
|
||||||
|
queries_with_diffs 0
|
||||||
|
queries_with_errors 1
|
4
t/pt-upgrade/samples/005/error_on_host2.log
Normal file
4
t/pt-upgrade/samples/005/error_on_host2.log
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# User@Host: root[root] @ localhost []
|
||||||
|
# Query_time: 1 Lock_time: 0 Rows_sent: 7 Rows_examined: 7
|
||||||
|
use test;
|
||||||
|
select host1_col from test.t;
|
36
t/pt-upgrade/samples/005/error_on_host2.txt
Normal file
36
t/pt-upgrade/samples/005/error_on_host2.txt
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
########################################################################
|
||||||
|
# Query class 883A4BC43021922E
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
Reporting class because it has diffs, but hasn't been reported yet.
|
||||||
|
|
||||||
|
Total queries 1
|
||||||
|
Unique queries 1
|
||||||
|
Discarded queries 0
|
||||||
|
|
||||||
|
select host?_col from test.t
|
||||||
|
|
||||||
|
##
|
||||||
|
## Query errors diffs: 1
|
||||||
|
##
|
||||||
|
|
||||||
|
-- 1.
|
||||||
|
|
||||||
|
No error
|
||||||
|
|
||||||
|
vs.
|
||||||
|
|
||||||
|
DBD::mysql::st execute failed: Unknown column 'host1_col' in 'field list' [for Statement "select host1_col from test.t"] at /Users/daniel/p/pt-upgrade-2.2/bin/pt-upgrade line 5327, <> line 1.
|
||||||
|
|
||||||
|
select host1_col from test.t
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
# Stats
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
failed_queries 0
|
||||||
|
queries_filtered 0
|
||||||
|
queries_no_diffs 0
|
||||||
|
queries_read 1
|
||||||
|
queries_with_diffs 0
|
||||||
|
queries_with_errors 1
|
5
t/pt-upgrade/samples/005/host1.sql
Normal file
5
t/pt-upgrade/samples/005/host1.sql
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
USE test;
|
||||||
|
CREATE TABLE t (
|
||||||
|
host1_col INT
|
||||||
|
);
|
||||||
|
INSERT INTO t VALUES (1);
|
5
t/pt-upgrade/samples/005/host2.sql
Normal file
5
t/pt-upgrade/samples/005/host2.sql
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
USE test;
|
||||||
|
CREATE TABLE t (
|
||||||
|
host2_col INT
|
||||||
|
);
|
||||||
|
INSERT INTO t VALUES (1);
|
2
t/pt-upgrade/samples/005/tables.sql
Normal file
2
t/pt-upgrade/samples/005/tables.sql
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
DROP DATABASE IF EXISTS test;
|
||||||
|
CREATE DATABASE test;
|
Reference in New Issue
Block a user